https://bugs.winehq.org/show_bug.cgi?id=53610
Bug ID: 53610 Summary: NtSetSystemTime not allowed: difference -930 ms Product: Wine Version: 7.16 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: raydongf@gmail.com Distribution: ---
It looks like since mid-2020, NtSetSystemTime has been a stub that does nothing except possibly error when the difference is not greater than -500ms and less than 500ms.
In the past, wine used to call settimeofday when NtSetSystemTime was implemented directly in dlls/ntdll/time.c, but this is seemingly no longer present in dlls/ntdll/unix/sync.c.
Is this intentional? Unfortunately, it's causing a time syncing feature to fail for a server daemon that I use, which I can't distribute.
The call to NtSetSystemTime is from SetLocalTime(const SYSTEMTIME *).