[Javascript] Q on TimeZone

Hassan Schroeder hassan at webtuitive.com
Wed Sep 12 10:36:53 CDT 2001


Walter Torres wrote:

> I have a database that contains timestamps, and GMT offsets.
> 
> I want to convert these values into Date Objects.

... that reflect what? the original date/time converted to your own
client's local time? to the original date/time in GMT/UTC?

In any case, if you need to add or subtract minutes, doing it using
Date.UTC(yr, mon, day, hr, min, sec) with the 'min' adjusted by the
offset would seem to be the easiest.

HTH!
-- 
H*
Hassan Schroeder ----------------------------- hassan at webtuitive.com 
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

    -- creating dynamic Web sites and applications since 1994 --



More information about the Javascript mailing list