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

Duration from ISO String with milliseconds doesn't set milliseconds #1652

Open
simonkleinfeld opened this issue Oct 1, 2021 · 0 comments
Open

Comments

@simonkleinfeld
Copy link

Describe the bug
Creating a duration from an ISO String doesn't set the milliseconds in the duration object.
dayjs.duration("P4DT12H30M17.899S")
returns
{ years: 0, months: 0, weeks: 0, days: 4, hours: 12, minutes: 30, seconds: 17.899 }

Expected behavior
The milliseconds will be set
{ years: 0, months: 0, weeks: 0, days: 4, hours: 12, minutes: 30, seconds: 17, milliseconds: 899 }

Information

  • Day.js Version v1.10.7
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