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 using the toHuman() method on any Duration that has the quarters property set, the error RangeError: Invalid unit argument for Intl.NumberFormat() 'quarter' is thrown.
To Reproduce
var luxon = require("luxon")
const dur = luxon.Duration.fromObject({quarters: 1});
console.log(dur.toHuman())
Describe the bug
When using the
toHuman()
method on any Duration that has thequarters
property set, the errorRangeError: Invalid unit argument for Intl.NumberFormat() 'quarter'
is thrown.To Reproduce
Link to RunKit: https://runkit.com/luca-audoora/luxon-quarters
Actual vs Expected behavior
I expected to get the string
"1 quarter"
back, above error is thrown instead.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: