How about checking the epoch time on the server with "date +%s" ?

2009/9/20 Richard Gaskin <[email protected]>

> I have a CGI which stores dates using internet date format.
>
> In one of my CGI routines I use the convert command to reformat the date
> into a more user-friendly form:
>
>    convert tTimeStamp to long date and short time
>
> The oddity is that the convert command running on the server shows the time
> portion as 8 hours ahead of the value in the original timestamp.
>
> I've also used seconds instead of the internet date, with the same result.
>
> I've verified that the CGI is storing the correct timestamp, and when I run
> the same convert on my local machine it always converts correctly.
>
> Is there something odd about using the convert command in a CGI that I
> don't know about?
>
> FWIW, I'm not using the useSystemDate, and since the server is in my time
> zone that shouldn't affect it anyway.
>
> What am I missing?
>
> --
>  Richard Gaskin
>  Fourth World
>  Revolution training and consulting: http://www.fourthworld.com
>  Webzine for Rev developers: http://www.revjournal.com
> _______________________________________________
> use-revolution mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to