You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When parsing a duration string, eg dayjs.duration('P1Y2M3W4DT12H34M56S') and logging the result, it returns the values as strings instead of numbers:
Expected behavior
It should return numbers, as given by the return type in plugins/duration.d.ts.
Information
Day.js Version 1.10.4
OS: OSX 11.2.1
Browser: Chrome 88.0.4324.182
Time zone: GMT+7
The text was updated successfully, but these errors were encountered:
Describe the bug
When parsing a duration string, eg
dayjs.duration('P1Y2M3W4DT12H34M56S')
and logging the result, it returns the values as strings instead of numbers:Expected behavior
It should return numbers, as given by the return type in
plugins/duration.d.ts
.Information
The text was updated successfully, but these errors were encountered: