Explorar o código

+ also fill DayOfWeek in the Unix implementation of SysUtils.GetLocalTime

(cherry picked from commit f21273612a6ab485cf408aaaf6b9c0c5381ae1b6)
Nikolay Nikolov %!s(int64=3) %!d(string=hai) anos
pai
achega
819658f61e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      rtl/unix/sysutils.pp

+ 1 - 0
rtl/unix/sysutils.pp

@@ -1467,6 +1467,7 @@ var
   usecs : Word;
   usecs : Word;
 begin
 begin
   DoGetLocalDateTime(SystemTime.Year, SystemTime.Month, SystemTime.Day,SystemTime.Hour, SystemTime.Minute, SystemTime.Second, SystemTime.MilliSecond, usecs);
   DoGetLocalDateTime(SystemTime.Year, SystemTime.Month, SystemTime.Day,SystemTime.Hour, SystemTime.Minute, SystemTime.Second, SystemTime.MilliSecond, usecs);
+  SystemTime.DayOfWeek:=DayOfWeek(EncodeDate(SystemTime.Year,SystemTime.Month,SystemTime.Day))-1;
 end ;
 end ;
 {$endif}
 {$endif}