-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS.get_time_zone_info() does not adjust bias during DST #37571
Comments
It seems to be taken into account on Linux. I live in France (which is GMT+1), and I get the following on Linux: This is probably OS-specific. Further testing on macOS, mobile and HTML5 is welcome. Minimal reproduction project: test_date_bias.zip |
I'm on windows 10 in germany. Should be getting a bias of 120 as well right now, but I get this: Exporting to the web results in this: |
Workaround on windows:
|
@bati22 afaik it only affects windows, and may only happen during Daylight Savings. You could set your computer clock to the summer to test. |
Godot version: 3.2
OS/device including version: Windows 10
Issue description: When calling OS.get_time_zone_info() during part of the year when DST is active, the bias field returned does not take daylight saving time into account, so for instance, Mountain Daylight Time reads as a bias of 420 (7 hours) instead of 360 (6 hours). A bias of 420 would be correct for the standard time part of the year, but is incorrect when DST is active.
Steps to reproduce: Call OS.get_time_zone_info(), print the result to console, and observe the incorrect bias.
Minimal reproduction project: Any project will do.
The text was updated successfully, but these errors were encountered: