- May
- 13,723
- 206
I switched from Eastern Daylight Time (-240) to Eastern Standard Time (-300) on Sunday and my computer has been restarted since then. WMI seems to be aware of the current time zone offset.
But it's reporting current times in the Eastern Daylight Time format. They are off by an hour. Below, %_time is correct.
What do you see?
Code:
v:\> echo %@wmi[.,"select Bias from Win32_timezone"]
-300
But it's reporting current times in the Eastern Daylight Time format. They are off by an hour. Below, %_time is correct.
Code:
v:\> echo %_time
12:40:22
v:\> echo %@wmi[.,"select LocalDateTime from Win32_OperatingSystem"]
20201104134032.263000-240
What do you see?