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
The text was updated successfully, but these errors were encountered:
adchevrier
changed the title
humanize a duration returns month instead of days
humanize a duration returns month instead of days with updated locale
Jul 19, 2024
Describe the bug
When updating the locale to change the 'a month' format to '1 month':
The humanize function does not work as expected.
dayjs.duration(1, "month").humanize()
returns'30 month'
same for
dayjs.duration(30, "days").humanize()
anddayjs.duration("P1M").humanize()
I have tested the limits:
Expected behavior
It should return
'1 month'
Information
The text was updated successfully, but these errors were encountered: