Browse Source

* win: fix GetLocalTimeOffset lower boundary

git-svn-id: trunk@47323 -
(cherry picked from commit 39674e28521512efe9e3be18579be344ee382cb7)
ondrej 4 years ago
parent
commit
fa12b40021
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/win/sysutils.pp

+ 1 - 1
rtl/win/sysutils.pp

@@ -881,7 +881,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;