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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
seodevhead
Forum Regular
Posts: 705
Joined: Sat Oct 08, 2005 8:18 pm
Location: Windermere, FL

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

Post 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
User avatar
lukewilkins
Forum Commoner
Posts: 55
Joined: Tue Aug 12, 2008 2:42 pm

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

Post 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.
User avatar
seodevhead
Forum Regular
Posts: 705
Joined: Sat Oct 08, 2005 8:18 pm
Location: Windermere, FL

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

Post by seodevhead »

Thanks a bunch Luke... yea.. both work.. but I went with double-quotes just to be safe. :D
User avatar
lukewilkins
Forum Commoner
Posts: 55
Joined: Tue Aug 12, 2008 2:42 pm

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

Post by lukewilkins »

Excellent. Glad that worked for you.
Post Reply