PHP warnings for date/time functions and TimeZone convert

Bug #1435833 reported by Alex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
queXS
Opinion
Undecided
Unassigned

Bug Description

some time ago figured a lot of PHP Warnings in http logs similar to:

"PHP 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."

Appeared that it is better to set server date.timezone

To do so edit your php.ini file -> find block [Date] uncomment or add if not exist string (in my case string 957 )

   date.timezone = " Your/Zone" in Olson format

this should eliminate Warning messages and lead to proper timezone conversion and php date/time functions execution

Alex

Alex (ddrmoscow)
Changed in quexs:
status: New → Fix Committed
Alex (ddrmoscow)
Changed in quexs:
status: Fix Committed → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.