#52 mktime and date error

open
courou
Calendar (5)
5
2008-04-01
2008-04-01
Anonymous
No

1 April 2008 à 10:20 10
Unkown error type mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'Europe/Berlin' for 'CEST/2.0/DST' instead line: 175 file : calendar.class - PHP 5.2.5(Linux)

1 April 2008 à 10:20 10
Unkown error type date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'Europe/Berlin' for 'CEST/2.0/DST' instead line: 175 file : calendar.class - PHP 5.2.5(Linux)

Discussion

  • The way around this is to search for // fix the error for date > 2038 in the calendar.class file. Located in the class folder under public_html. Verson 2.0 it's line 186. Under this statement put - date_default_timezone_set("America/Los_Angeles");

    Where America/Los_Angeles you can replace with your region to state your time.