Menu

#25 Missing date.timezone setting

v1.0_(example)
closed
nobody
3
2014-05-04
2014-01-04
Parq
No

If you enable error logging there's a lot of warnings with this error:

ERROR - 2014-01-04 08:19:18 --> Severity: Warning --> date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
ERROR - 2014-01-04 08:19:18 --> Severity: Warning --> date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.

It seems to have no big effect on the app, but it makes very hard the reading of the log file.

Discussion

  • Anonymous

    Anonymous - 2014-01-23

    Try putting this (with your own timezone) at program start:
    date.timezone = America/New_York

     
  • jekkos

    jekkos - 2014-05-04
    • status: open --> closed