Calculating the client's time zone

I need to store the client’s timezone relative to GMT. I know Toronto is -5 hours. I need to automatically calculate the differential wherever the client happens to be and store it.

I suspect, but am not sure, getDate() routines return the datetime of the server, not the client. It’s the client’s differential to GMT I’m after.

application.getTimeStamp();
```returns

> Fri Oct 07 09:45:38 EDT 2005

Doesn't tell me the GMT differential unless I'm supplied with a lookup table of time zone acronyms. 

Is there a better way?

use the util node method to be able to exactly specify what format you want:
utils.dateFormat(orderdate,‘EEE, d MMM yyyy HH:mm:ss’)
the format string is same as http://java.sun.com/j2se/1.4.2/docs/api … ormat.html

which is also in the docs.

Jan Blok:
use the util node method to be able to exactly specify what format you want:
utils.dateFormat(orderdate,‘EEE, d MMM yyyy HH:mm:ss’)
the format string is same as http://java.sun.com/j2se/1.4.2/docs/api … ormat.html

which is also in the docs.

Thanks Jan, exactly what was needed.