-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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_datetime_from_unix_time()
does not return the same value as OS.get_datetime()
#52951
Comments
What results fo you get? And what's your timezone? |
I take it back, on my Mac OS machine the output of the above is:
These are definitely 7 hours off. For reference my timezone is MST (-7) |
My output is
My timezone is PDT (-7) also. |
Here's what I have on Linux in CEST / UTC+2 with DST on (Summer Time), with current time 10:10 CEST / 08:10 UTC:
So the output seems consistent to me, it's just the documentation which is wrong:
One apparent issue though is that @ShatReal should have |
Note: Time stuff was moved out of OS to Time in the mean time (:P): #49123 |
Godot version
3.4-beta4
System information
Windows 10
Issue description
The docs for
OS.get_datetime_from_unix_time()
say:But that's not true. Unless the 7 hours difference is because of Daylight Savings? I don't really know if this is a bug or not or intended behavior.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: