Skip to content
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

Issue with ISO date and time zone #644

Closed
tomitrescak opened this issue Jul 29, 2019 · 1 comment
Closed

Issue with ISO date and time zone #644

tomitrescak opened this issue Jul 29, 2019 · 1 comment

Comments

@tomitrescak
Copy link

Describe the bug

When formatting the ISO date, it ignores the timezone setting.

dayjs("1771-01-17T23:14:44.000Z").format('YYYY-MM-DD', { timeZone: 'UTC' })

Leads to '1771-01-18'

Expected behavior

Date is formatted as '1771-01-17'

Information

  • Day.js Version 1.8.14
  • OS: OSX
  • Browser Chrome
  • Time zone: AEST - Australia Eastern
@tomitrescak
Copy link
Author

Nevermind, found the UTC plugin

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

1 participant