-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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.toISOString() returns wrong result #888
Labels
Comments
iamkun
added a commit
that referenced
this issue
Apr 28, 2020
Thanks, will fix soon |
iamkun
added a commit
that referenced
this issue
Apr 28, 2020
* fix: Fix Duration Plugin `.toISOString` format bug fix #888 * test: Update RelativeTime plugin test
iamkun
pushed a commit
that referenced
this issue
Apr 30, 2020
## [1.8.26](v1.8.25...v1.8.26) (2020-04-30) ### Bug Fixes * Fix Duration plugin `.toISOString` format bug ([#889](#889)) ([058d624](058d624)), closes [#888](#888) * Fix WeekOfYear plugin bug while using BadMutable plugin ([#884](#884)) ([2977438](2977438)) * Update CustomParseFormat plugin strict mode ([#882](#882)) ([db642ac](db642ac)) * Update RelativeTime plugin default config ([#883](#883)) ([0606f42](0606f42))
🎉 This issue has been resolved in version 1.8.26 🎉 The release is available on: Your semantic-release bot 📦🚀 |
andrewhood125ruhuc
added a commit
to andrewhood125ruhuc/SidRH2
that referenced
this issue
May 10, 2022
## [1.8.26](iamkun/dayjs@v1.8.25...v1.8.26) (2020-04-30) ### Bug Fixes * Fix Duration plugin `.toISOString` format bug ([#889](iamkun/dayjs#889)) ([058d624](iamkun/dayjs@058d624)), closes [#888](iamkun/dayjs#888) * Fix WeekOfYear plugin bug while using BadMutable plugin ([#884](iamkun/dayjs#884)) ([2977438](iamkun/dayjs@2977438)) * Update CustomParseFormat plugin strict mode ([#882](iamkun/dayjs#882)) ([db642ac](iamkun/dayjs@db642ac)) * Update RelativeTime plugin default config ([#883](iamkun/dayjs#883)) ([0606f42](iamkun/dayjs@0606f42))
andrewhood125ruhuc
added a commit
to andrewhood125ruhuc/SidRH2
that referenced
this issue
May 10, 2022
## [1.8.26](iamkun/dayjs@v1.8.25...v1.8.26) (2020-04-30) ### Bug Fixes * Fix Duration plugin `.toISOString` format bug ([#889](iamkun/dayjs#889)) ([058d624](iamkun/dayjs@058d624)), closes [#888](iamkun/dayjs#888) * Fix WeekOfYear plugin bug while using BadMutable plugin ([#884](iamkun/dayjs#884)) ([2977438](iamkun/dayjs@2977438)) * Update CustomParseFormat plugin strict mode ([#882](iamkun/dayjs#882)) ([db642ac](iamkun/dayjs@db642ac)) * Update RelativeTime plugin default config ([#883](iamkun/dayjs#883)) ([0606f42](iamkun/dayjs@0606f42))
splashwizard
pushed a commit
to splashwizard/tracking-time
that referenced
this issue
Oct 21, 2024
## [1.8.26](iamkun/dayjs@v1.8.25...v1.8.26) (2020-04-30) ### Bug Fixes * Fix Duration plugin `.toISOString` format bug ([#889](iamkun/dayjs#889)) ([058d624](iamkun/dayjs@058d624)), closes [#888](iamkun/dayjs#888) * Fix WeekOfYear plugin bug while using BadMutable plugin ([#884](iamkun/dayjs#884)) ([2977438](iamkun/dayjs@2977438)) * Update CustomParseFormat plugin strict mode ([#882](iamkun/dayjs#882)) ([db642ac](iamkun/dayjs@db642ac)) * Update RelativeTime plugin default config ([#883](iamkun/dayjs#883)) ([0606f42](iamkun/dayjs@0606f42))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
dayjs.duration(dayjs.duration(1, 'minutes').toISOString()).as('minutes') returns 43200
dayjs.duration(1, 'minutes').toISOString() return 'P1M'
Expected behavior
Should return 1
Suppose that dayjs.duration(1, 'minutes').toISOString() should return 'PT1M'
Information
The text was updated successfully, but these errors were encountered: