17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 15911 Views |
-
Timezone

19 March 2008 at 3:13pm
Firstly, fantastic framework! This is exactly what I have been looking for and why I have spent the last few years intermittently writing my own CMS as all the others out there are far to restrictive. My one sits on top of a framework that uses XML to define data models for content, you guys have used a similar approach to what I have done except it's all done with PHP and is obviously ~considerably~ more advanced
After completing my first SS implementation last weekend (http://www.kiwi-ise.co.nz/) I am looking forward to learning much more about this framework.
I do have a simple question to start with and I have hunted everywhere... is it possible to change the default timezone for SS if your site is hosted in a different country? Is there a reference doc with all the config settings that would cover this?
Thanks again! And sorry Sig/Tim that it's taken you about 2 years to convince us [Doubleclique] to try this
-
Re: Timezone

19 March 2008 at 4:31pm
In mysite/_config.php:
date_default_timezone_set('zone');
A list of available time zones is available here
-
Re: Timezone

19 March 2008 at 4:51pm Last edited: 19 March 2008 4:51pm
HAHAHA - no, I mean the date_default_timezone_set() method - I could not find this anywhere in docs or forum... is this just something you "know"?
-
Re: Timezone

19 March 2008 at 4:54pm
Yeah. It's not actually part of SilverStripe, but it changes the default timezone that PHP uses for everything involving dates, including all Date* classes in SilverStripe.
-
Re: Timezone

19 March 2008 at 10:03pm
Of course! Thanks
For some strange reason it does not seem to have done what I expected... I thought this would change all the times for comments, blogs, forum posts etc??
-
Re: Timezone

6 June 2008 at 2:52am
hello! im having the same problem... what if my site doesn't have a mysite/_config.php.. where else can I put date_default_timezone_set('......'); into?
| 15911 Views | ||
|
Page:
1
|
Go to Top |


