Friday 10 October 2003 3:33:34 pm
Hi Valentin,
I'm not sure anymore, if you can change the timezone in the /share/local file. But i tested another workaround, it worked on my server, i hope it works with your's too: To change your time from american to norway (6 hours timedifference), you have to make changes in your template files. May '$publishtime' be the time which should be changed.
{let correctedtime=sum($publishtime, 21600)}
{$correctedtime|datetime(custom, "%H:%i:%s")} {/let} This code does the following: The $publishtime (when you posted your article) is the amount of seconds passed since the Unix Epoch (January 1 1970 00:00:00 GMT). Because of the US lying in the west of you, you have to add to the $publishtime a constant value to get the norway time (21600, in seconds). Then you post the $correctedtime with the format you want to use (this may be mine as i wrote it or the standard one). I hope this will help you getting the 'normal' time, but you have to change your template code everytime when you want to get your 'local time'. If someone know, where to change the kernel, so that the timeoffset is done by one integer by default, it would be nice to post it here. Greetings and sleep well, Thomas
|