mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Use standard function to get time zone offset
This commit is contained in:
parent
eb7f6b1738
commit
1292ba8ead
1 changed files with 1 additions and 17 deletions
|
|
@ -606,24 +606,8 @@ begin
|
|||
end;
|
||||
|
||||
{$IF DEFINED(MSWINDOWS)}
|
||||
procedure InitTimeZoneBias;
|
||||
var
|
||||
TZInfo: TTimeZoneInformation;
|
||||
begin
|
||||
case GetTimeZoneInformation(@TZInfo) of
|
||||
TIME_ZONE_ID_UNKNOWN:
|
||||
WinTimeZoneBias := TZInfo.Bias;
|
||||
TIME_ZONE_ID_STANDARD:
|
||||
WinTimeZoneBias := TZInfo.Bias + TZInfo.StandardBias;
|
||||
TIME_ZONE_ID_DAYLIGHT:
|
||||
WinTimeZoneBias := TZInfo.Bias + TZInfo.DaylightBias;
|
||||
else
|
||||
WinTimeZoneBias := 0;
|
||||
end;
|
||||
end;
|
||||
|
||||
initialization
|
||||
InitTimeZoneBias;
|
||||
WinTimeZoneBias := GetLocalTimeOffset;
|
||||
if (Win32MajorVersion > 5) then
|
||||
begin
|
||||
Pointer(TzSpecificLocalTimeToSystemTime):= GetProcAddress(GetModuleHandle(Kernel32),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue