fix(i18n): use floor rounding on use time ago (#444)

This commit is contained in:
Joaquín Sánchez 2022-12-19 22:20:32 +01:00 committed by GitHub
parent aa9b5d2cb1
commit 4d88ee312e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 23 deletions

View file

@ -63,6 +63,7 @@ export const useTimeAgoOptions = (short = false): UseTimeAgoOptions<false> => {
const prefix = short ? 'short_' : ''
return {
rounding: 'floor',
showSecond: !short,
updateInterval: short ? 60_000 : 1_000,
messages: {