소스 검색

Unix timezone: fix search around TZ change back to be the same as on Windows

git-svn-id: trunk@47296 -
(cherry picked from commit f296bf3f2d1d3a7181b1b01578b8bdaccaff4ff6)
ondrej 4 년 전
부모
커밋
4b91815315
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/unix/timezone.inc

+ 1 - 1
rtl/unix/timezone.inc

@@ -63,7 +63,7 @@ begin
        begin
          case timerIsUTC of
            True: if (timer<transitions[i]) then break;
-           False: if (timer<transitions[i]+types[type_idxs[i]].offset) then break;
+           False: if (timer<transitions[i]+types[type_idxs[i-1]].offset) then break;
          end;
          inc(i);
        end;