mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 05:08:06 +02:00
+ also fill DayOfWeek in the Unix implementation of SysUtils.GetLocalTime
This commit is contained in:
parent
f20de5d583
commit
f21273612a
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user