Alpha Video Training
Results 1 to 3 of 3

Thread: GetTimeZoneOffset()

  1. #1
    "Certified" Alphaholic Tom Henkel's Avatar
    Real Name
    Tom Henkel
    Join Date
    May 2002
    Location
    New Jersey, USA
    Posts
    1,873

    Default GetTimeZoneOffset()

    Does the function GetTimeZoneOffset() account for daylight savings time? I have a client that gets information in julian format in GMT time (1257177600). In the application, I am converting that time by subtracting 5 hours now that it is EST, so it becomes 11/02/2009 04:00:00 PM. My question is, If I just use GetTimeZoneOffset()*3600, will it be smart enough to go to 4 hours come spring when we revert back to EDT?

    Tom
    Last edited by Tom Henkel; 11-04-2009 at 12:46 PM. Reason: I just can't type!!!

  2. #2
    "Certified" Alphaholic Tom Henkel's Avatar
    Real Name
    Tom Henkel
    Join Date
    May 2002
    Location
    New Jersey, USA
    Posts
    1,873

    Default Re: GetTimeZoneOffset()

    Just tested it. Yes, it does. This saves me from fixing things later.:)

  3. #3
    "Certified" Alphaholic G Gabriel's Avatar
    Real Name
    G. Gabriel
    Join Date
    Oct 2004
    Posts
    7,204

    Default Re: GetTimeZoneOffset()

    It should if you set your Windows to automatic updates.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •