PHP 5.3 now requires that we all have a specific timezone set, either by date.timezone or date_default_timezone_set();
If neither of these are set, we get a few WARNING error like the following:
To fix this, simply add the following line of code to your php.ini file:
date.timezone="America/New_York" |
You can also define date_default_timezone_set setting before date.timezone function:
was
echo date('Y-m-d H:i:s', time()); |
now
date_default_timezone_set('UTC'); echo date('Y-m-d H:i:s', time()); |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|