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
Wrong time in GMT timezones when locale is set #1813
Comments
It's not off by 4 hours which is interesting. Haven't had daylight savings in either timezone since I reported the bug. |
What a curious little bug you've found! For one, it is actually daylight savings sensitive. When you first reported the bug, the current date and time were in daylight savings time, which, in order to be reproducible, should be written like this:
But if we use a date in standard time (like right now as of this writing), the anomaly disappears:
As a note, invoking
Thanks for the report! |
Describe the bug
The following code:
Returns a time in EST (5 hours behind London, 3 hours ahead of me)
I'm located in California, not that that should matter here.
All other timezones that aren't in GMT time work perfectly fine
Not setting the locale this works perfectly fine.
Please assist
Expected behavior
The correct time in London
Information
The text was updated successfully, but these errors were encountered: