For many years Windows was just a lousy timekeeper, and had no support for leap seconds at all.
Support for leap second handling was only provided by 3rd party (non-Microsoft) software like
Only very current versions of Windows 10 and Windows Server 2019 can keep accurate time,
and have some built-in support for leap seconds, which explicitly has to be enabled, though.
For details see these Microsoft blog articles:
Further reading linked from the above:
— Martin Burnicki martin.burnicki@meinberg.de 2019-04-17