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
formatDistanceStrict/formatDistanceToNowStrict returns '12 months' rather than '1 year' #2388
Comments
kingsonlo
changed the title
formatDistanceStrict/formatDistanceToNowStrict returns '12 months'
formatDistanceStrict/formatDistanceToNowStrict returns '12 months' rather than '1 year'
Mar 30, 2021
hi @kingsonlo, a PR has been raised to fix this - awaiting for a review from @kossnocorp |
awesome! thanks @tan75 ! |
kossnocorp
pushed a commit
that referenced
this issue
Apr 8, 2021
For me, the previous behavior of this function is preferred when the unit is directly specified. Is there a way around that? |
hi @bsime-gather |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the documentation,
formatDistanceStrict
should not have the result of12 months
:However, when I run the following example, I get
12 months
. I would expect1 year
:Same issue with
formatDistanceToNowStrict
The text was updated successfully, but these errors were encountered: