Use js Intl api instead of date-fns format #1884
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The ECMAScript Internationalization API can replace a lot of parts maybe even everything of date-fns and has good support.
Can it do things like "two hours ago"?
Yes with RelativeTimeFormat. It's a really good api! They basically try to undo the fuckup they did with the normal js date =)
Ohhh right, I remember having read something about this. Finally no more months starting at 0!
Looks great!