timezone?

Posted by andre on October 07, 2009

Since the Now(); function returns the LOCAL time, and I need UTC, I am trying to obtain the current timezone using this code:

GetTimeZoneInformation(tz);
ShowMessage(IntToStr(tz.StandardBias)); // 0
ShowMessage(IntToStr(tz.DaylightBias)); // -60


my timezone is set to GMT+1 (Amsterdam, Berlin, Bern, Rome.....)
so, there values don't seem to be correct.

Related articles

       

Follow Ups

Post a Followup

Name:
Password:

Subject:

Comments:

DelphiLand Club members: enter your Membership password.
Guests can get a Forum Guest password by subscribing to the DelphiLand Newsletter.