Timezone offset between server and locale
Posted: Thu Jul 28, 2011 3:52 pm
Hi
My server is in Amsterdam and I am in London.
Using PHP 5.3 you have to set the timezone to the servers location. Everything then works fine without the caching issues when trying to create new pages mentioned in threads like this: http://forum.cmsmadesimple.org/viewtopi ... t=timezone .
However, this means that all the news and calendar entries are all based on the wrong time zone.
I would just like to know if there is a way to override the time zone somehow, so that when my client creates a news story, the time is correct, or when a calendar event expires, it does so at the right time and not the server's timezone.
So far I have tried installing cmsms 1.9.4.2 under php5.3.5:
- Changing the timezone in the config.php causes caching issues when creating new pages.
- Adding SetEnv TZ :Europe/London in the .htaccess file also causes the caching problem.
The host (webfaction) suggested the .htaccess method but said Logically, the only way it wouldn't work, would be if it uses MySQL time as well. Unfortunately there is no easy solution if this is the case. Sadly it didn't help.
Can anyone shed any light on this - it seems a rather fundamental issue. I've been pulling my hair out, just trying to get a fresh install working in a way I'd be comfortable showing a client.
Regards
NikNak
My server is in Amsterdam and I am in London.
Using PHP 5.3 you have to set the timezone to the servers location. Everything then works fine without the caching issues when trying to create new pages mentioned in threads like this: http://forum.cmsmadesimple.org/viewtopi ... t=timezone .
However, this means that all the news and calendar entries are all based on the wrong time zone.
I would just like to know if there is a way to override the time zone somehow, so that when my client creates a news story, the time is correct, or when a calendar event expires, it does so at the right time and not the server's timezone.
So far I have tried installing cmsms 1.9.4.2 under php5.3.5:
- Changing the timezone in the config.php causes caching issues when creating new pages.
- Adding SetEnv TZ :Europe/London in the .htaccess file also causes the caching problem.
The host (webfaction) suggested the .htaccess method but said Logically, the only way it wouldn't work, would be if it uses MySQL time as well. Unfortunately there is no easy solution if this is the case. Sadly it didn't help.
Can anyone shed any light on this - it seems a rather fundamental issue. I've been pulling my hair out, just trying to get a fresh install working in a way I'd be comfortable showing a client.
Regards
NikNak