Monday 09 March 2009 1:45:31 am
Hi,
Have some problems with outputing correct time in eZ Publish. The time on created object is one hour wrong. I have tried to just make a small script as a module/view that outputs current time, and it is also wrong:
echo strftime( "%d-%m-%Y %H-%M" ).'<br>';
echo date( 'd-m-Y H-i', time() );
When i just makes a standalone script on the server and call it from the console I got the corret time. So the problem is eZ Publish. I have tried these soloutions:
putenv("TZ=GMT+1");
echo strftime( "%d-%m-%Y %H-%M" ).'<br>';
echo date( 'd-m-Y H-i', time() );
putenv("TZ=Europe/Oslo);
echo strftime( "%d-%m-%Y %H-%M" ).'<br>';
echo date( 'd-m-Y H-i', time() );
[TimeZoneSettings]
TimeZone=Europe/Oslo
[TimeZoneSettings]
TimeZone=GMT+1
Any suggestions?
Sincerely,
Anders Sandvik Berre
http://www.netmaking.no/
|