Page 1 of 1

date.timezone in php.ini (do I need quotes?)

Posted: Tue Aug 19, 2008 11:10 am
by seodevhead
Simple question:

I'm adding a date.timezone directive to my php.ini.

I'm looking around on various tutorials and such through google and some people put the timezone in quotes and some don't... which is it?

date.timezone = "America/New_York"

- or -

date.timezone = America/New_York

Re: date.timezone in php.ini (do I need quotes?)

Posted: Tue Aug 19, 2008 11:25 am
by lukewilkins
I believe either way will actually work. I use quotes in mine if I remember correctly. Just set it and restart Apache, and see if it works.

Re: date.timezone in php.ini (do I need quotes?)

Posted: Tue Aug 19, 2008 2:06 pm
by seodevhead
Thanks a bunch Luke... yea.. both work.. but I went with double-quotes just to be safe. :D

Re: date.timezone in php.ini (do I need quotes?)

Posted: Wed Aug 20, 2008 10:54 am
by lukewilkins
Excellent. Glad that worked for you.