Python time returning values 3 hours fast of UTC that convert to correct local time
When I call the time.gmtime() function or the time.time() function on Windows 11, it's returning a time three hours ahead of actual UTC according to this website. When called on Linux, they are accurate. time.localtime() return is correct for my local time (US Eastern). Time zone is set correctly on my system. On Windows 11, run the following code, and look at the hour of any online display of UTC at the same time: ``` import time print(time.gmtime().tm_hour) ``` This should be printing 18 right now according to https://www.timeanddate.com/worldclock/timezone/utc (it was 5 PM Eastern when I drafted this question), but instead it is printing 21. Again, on Windows 11, run the following code: ``` import time print(time.time()) ``` When I plug the value printed out here into https://www.epochconverter.com/, its output also shows my local time correctly like time.localtime(), but the UTC half of the conversion output is also 3 hours ahead.