Explorar el Código

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

(cherry picked from commit f21273612a6ab485cf408aaaf6b9c0c5381ae1b6)
Nikolay Nikolov hace 3 años
padre
commit
819658f61e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      rtl/unix/sysutils.pp

+ 1 - 0
rtl/unix/sysutils.pp

@@ -1467,6 +1467,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}