]> scripts.mit.edu Git - www/raw.git/blob - faq/138.mdwn
Import from TextPattern
[www/raw.git] / faq / 138.mdwn
1 [[!meta title="I'm seeing: "It is not safe to rely on the system's timezone settings.""]]
2 If you are getting the PHP warning:
3
4 > **Warning**: date() [function.date]: It is not safe to rely on the
5 > system’s timezone settings. You are \\\*required\\\* to use the
6 > date.timezone setting or the date\_default\_timezone\_set()
7 > function. In case you used any of those methods and you are still
8 > getting this warning, you most likely misspelled the timezone
9 > identifier. We selected ‘America/New\_York’ for ‘EDT/-4.0/DST’
10 > instead in /afs/athena.mit.edu/… on line 0
11
12 You can resolve it by editing or creating a php.ini file in the
13 same directory as the PHP script emitting this error and adding the
14 line:
15
16     date.timezone = America/New_York
17
18
19