소스 검색

* win: fix GetLocalTimeOffset lower boundary

git-svn-id: trunk@47323 -
ondrej 4 년 전
부모
커밋
39674e2852
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/win/sysutils.pp

+ 1 - 1
rtl/win/sysutils.pp

@@ -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;