mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 00:09:32 +02:00
* win: fix GetLocalTimeOffset lower boundary
git-svn-id: trunk@47323 -
This commit is contained in:
parent
691fb2c9fe
commit
39674e2852
@ -898,7 +898,7 @@ begin
|
||||
DSTStart := DSTStart + (TZInfo.Bias+TZInfo.StandardBias)/MinsPerDay;
|
||||
DSTEnd := DSTEnd + (TZInfo.Bias+TZInfo.DaylightBias)/MinsPerDay;
|
||||
end;
|
||||
if (DateTime>DSTStart) and (DateTime<DSTEnd) then
|
||||
if (DSTStart<=DateTime) and (DateTime<DSTEnd) then
|
||||
Offset := TZInfo.Bias+TZInfo.DaylightBias
|
||||
else
|
||||
Offset := TZInfo.Bias+TZInfo.StandardBias;
|
||||
|
Loading…
Reference in New Issue
Block a user