Browse Source

* Again timezone fixes

Michaël Van Canneyt 2 weeks ago
parent
commit
5f5fb3febb
2 changed files with 3 additions and 1 deletions
  1. 2 1
      packages/rtl-objpas/src/inc/dateutil.inc
  2. 1 0
      rtl/wasicommon/wasiutil.pp

+ 2 - 1
packages/rtl-objpas/src/inc/dateutil.inc

@@ -22,6 +22,7 @@ unit DateUtils;
 interface
 
 {$ifndef FPUNONE}
+
 {$IFDEF FPC_DOTTEDUNITS}
 uses
   System.SysUtils, System.Math, System.TimeSpan;
@@ -3893,5 +3894,5 @@ begin
     aType:=lttStandard;
 end;
 
-{$endif}
+{$endif fpunone}
 end.

+ 1 - 0
rtl/wasicommon/wasiutil.pp

@@ -48,6 +48,7 @@ type
 var
   // Provide this so the time can be corrected for TZ info.
   // Once WASI has some means of setting it, it can be used to initialize this variable.
+  // This offset is added to UTC to get local time.
   UTCTimeOffset : Integer; // in minutes;