Page 1 of 1
How do I set the timezone?
Posted: Tue Oct 25, 2005 10:01 pm
by EsquireX
Hello all,
I have done a search here on "locale" and but couldn't make heads not tails of it. I can't find how to set the timezone to PST.
I saw 3 different ways to change it but I'm confused on the syntax and where to put it.
- $config['locale'] = 'en_US';
- setlocale()
- date_default_timezone_set()
I tried a few things but kept getting error messages so I thought I'd ask here.
Re: How do I set the timezone?
Posted: Wed Jan 21, 2009 3:43 am
by gingercat
I know this is a really old post BUT did anyone find a way to over ride the time zone?
My server is based in Texas and my clients are all in New Zealand. I need a way to globally add 18 hours (I think) to any time or date settings in CMSMS.
Re: How do I set the timezone?
Posted: Wed Jan 21, 2009 3:56 am
by JeremyBASS
This is quite easy actually.
Open your .htaccess file and add the following line:
SetEnv TZ location
where location is the specific timezone you want to define.
A list of Supported Timezones can be found here:
http://www.php.net/manual/en/timezones.php
hope this helps
cheers
jeremyBass
Re: How do I set the timezone?
Posted: Wed Jan 21, 2009 4:26 am
by gingercat
thanks - I thought I knew about .htaccess files but that one had slipped past me.
If I'd known it was that easy .....
Re: How do I set the timezone?
Posted: Wed Jan 21, 2009 6:13 am
by JeremyBASS
No prob... if you want more... here is a good link.. I write on many different parts...
http://www.corbensproducts.com
and I will be writing more to...
Glad I could help...
cheers
jeremyBass