-
Notifications
You must be signed in to change notification settings - Fork 55
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
Local date is deserialized as UTC timezone in Safari on macOS #380
Comments
What service is returning this date without timezone data? It feels like the service should always specify the timezone or Z for UTC. |
Facing a similar issue. Is there a solution for this yet? |
It's unfortunate that |
Since Temporal is still a ways off, what do we think about using something like https://www.npmjs.com/package/dayjs to handle parsing and converting to Date? |
@mpodwysocki can you confirm that Safari fixed this for you as well? |
@xirzec confirmed on Safari:
|
Package Version: 1.7.0
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
2019-01-10T10:00:00
2019-01-10T17:00:00 GMT+0700
Expected behavior
2019-01-10T10:00:00 GMT+0700
Datetime without timezone, should be treated as user's local time, not UTC.
Screenshots
User timezone is GMT+7 and browser is Google Chrome 79 on Windows 10
Deserialized as local time correctly.
User timezone is GMT+7 and browser is Safari 12.1.2 on mac OS
Additional context
Suspect the problem coming from here:
https://github.com/Azure/ms-rest-js/blob/master/lib/serializer.ts#L205
The text was updated successfully, but these errors were encountered: