Results 1 to 5 of 5

Thread: Any changes needed in code with GetTimeZoneInformation and new DST?

  1. #1

    Thread Starter
    Hyperactive Member Hassan Basri's Avatar
    Join Date
    Sep 2006
    Posts
    324

    Any changes needed in code with GetTimeZoneInformation and new DST?

    Hello, the new DST started, do we have to make any changes to our code or will updating windows fix any problems of calling the API GetTimeZoneInformation?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Any changes needed in code with GetTimeZoneInformation and new DST?

    It isn't supposed to start until 3/11

    Anyway, according to Microsoft, patching the computer should take care of everything.

  3. #3

    Thread Starter
    Hyperactive Member Hassan Basri's Avatar
    Join Date
    Sep 2006
    Posts
    324

    Re: Any changes needed in code with GetTimeZoneInformation and new DST?

    Thank you Hack.

    I know Canada didn't make those DST changes, however the US did. But for the common time zones like Eastern, Central and Pacfic I wonder what will happen.

  4. #4

    Thread Starter
    Hyperactive Member Hassan Basri's Avatar
    Join Date
    Sep 2006
    Posts
    324

    Re: Any changes needed in code with GetTimeZoneInformation and new DST?

    I found this link:
    http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx

    It states

    Q: I’m a C++ developer who uses the TZ environment variable, what does this mean to me?
    A: For customers who rely on the TZ environment variable for the DST information, they will get outdated DST information for 2007 and beyond (i.e., they will get DST information according to the previous system). Microsoft is currently working on a fix for this issue and will post information about its availability on the Visual Studio Support page. In the interim, developers are advised to test their applications to determine the impact of the DST update on their applications. This issue is also fixed in Visual Studio code name “Orcas”.

    Would that affect using GetTimeZoneInformation in Visual Basic 6.0?

  5. #5

    Thread Starter
    Hyperactive Member Hassan Basri's Avatar
    Join Date
    Sep 2006
    Posts
    324

    Re: Any changes needed in code with GetTimeZoneInformation and new DST?

    I have found that my application, Eastern Time Zone -5GMT, is returning March 4th 2007 and November 4th 2007 as the dates.

    My code returns the same results as this link from vbnet:
    http://vbnet.mvps.org/index.html?cod...neforecast.htm

    However that is incorrect. Does that mean GetTimeZoneInformation does not work anymore?

Posting Permissions

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



Click Here to Expand Forum to Full Width