Strange problem in time conversion with MC CGI on Apache
jbv
jbv.silences at club-internet.fr
Mon Apr 14 16:35:01 EDT 2003
Hi folks,
I need to get the GMT time (2 hrs behind my local time).
So, on my PC (Mac or Win) I use the following script :
get short time
convert it to seconds
subtract 7200 from it
convert it to time
Result : 4:34 PM becomes 2:34 PM
that works fine.
Now I want to do the same with MC running as CGI on
Apache. So I run the same script, and big surprise :
4:34 PM becomes 3:34 PM !!!!!
1 hr (or 3600 sec) get lost somewhere...
and when I check the content of "it" after subtracting 7200,
I have a difference of 7200 from the original time, so the
computation of seconds is correct...
Needless to say I'm puzzled...
Any idea ?
Thanks,
JB
More information about the metacard
mailing list