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

(cherry picked from commit f21273612a)
This commit is contained in:
Nikolay Nikolov 2021-10-13 02:39:04 +03:00 committed by marcoonthegit
parent f762d4e0c2
commit 819658f61e

View File

@ -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}