Skip to content

Incorrect offset format for DateTime #427

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

Closed
victorenator opened this issue Nov 14, 2018 · 1 comment
Closed

Incorrect offset format for DateTime #427

victorenator opened this issue Nov 14, 2018 · 1 comment

Comments

@victorenator
Copy link

Expected behaviour

new Date().getTimezoneOffset() returns -180 for UTC+3.
DateTime.fromStandardDate(new Date()).toString() should return the value YYYY-MM-DDThh:mm:ss.ms+03:00.

Unexpected behaviour

DateTime.fromStandardDate(new Date()).toString() returns the value YYYY-MM-DDThh:mm:ss.ms-03:00.

JS Date.getTimezoneOffset() returns a negative offset for the positive local timezone.

@lutovich
Copy link
Contributor

Hi @victorenator,

Driver 1.7.2 with the mentioned fix is now released and available on NPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants