Date is not safe to rely on the system's timezone settings

API

Staff member
Joined
Nov 17, 2018
Messages
132
Reaction score
30
Points
28
Location
Indonesia
Offline
You probably need to put the timezone in a configuration line in your php.ini file.

Code:
/usr/local/php/php.ini

You should have a block like this in your php.ini file:

Code:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Jakarta

If not, add it (replacing the timezone by yours). After configuring, make sure to restart httpd

Code:
service httpd restart
 
Last edited:
Top Bottom