Strange problem in time conversion with MC CGI on Apache
Robert Brenstein
rjb at rz.uni-potsdam.de
Tue Apr 15 04:59: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
>
If your Apache runs under OSX, it may be incorrectly applying the
summer time offset when doing conversions. I saw this reported
somewhere lately.
Robert
More information about the metacard
mailing list