Browse Source

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

git-svn-id: trunk@47296 -
ondrej 4 years ago
parent
commit
f296bf3f2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/unix/timezone.inc

+ 1 - 1
rtl/unix/timezone.inc

@@ -63,7 +63,7 @@ begin
        begin
        begin
          case timerIsUTC of
          case timerIsUTC of
            True: if (timer<transitions[i]) then break;
            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;
          end;
          inc(i);
          inc(i);
        end;
        end;