Explorar o código

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

Nikolay Nikolov %!s(int64=4) %!d(string=hai) anos
pai
achega
f21273612a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      rtl/unix/sysutils.pp

+ 1 - 0
rtl/unix/sysutils.pp

@@ -1432,6 +1432,7 @@ var
   usecs : Word;
 begin
   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 ;
 {$endif}