Difference between revisions of "Misceallaneous apache or php issues"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>Apache_web_server_configuration|Apache web server configuration</yambe:breadcrumb> =Misceallaneous apache or php issues= ==“date(): It is not safe to rely...") |
m |
||
Line 11: | Line 11: | ||
date.timezone = Asia/Kolkata | date.timezone = Asia/Kolkata | ||
</pre> | </pre> | ||
Learned from http://stackoverflow.com/questions/16765158/date-it-is-not-safe-to-rely-on-the-systems-timezone-settings |
Revision as of 04:15, 19 May 2015
<yambe:breadcrumb>Apache_web_server_configuration|Apache web server configuration</yambe:breadcrumb>
Misceallaneous apache or php issues
“date(): It is not safe to rely on the system's timezone settings…” error
This error may come if same code is used on an upgraded system (latest OS, PHP, apache, etc.). To solve this edit /etc/php.ini and under [Date] set proper timezone. For example:
[Date] ; Defines the default timezone used by the date functions ; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone = Asia/Kolkata
Learned from http://stackoverflow.com/questions/16765158/date-it-is-not-safe-to-rely-on-the-systems-timezone-settings