timeago.dart icon indicating copy to clipboard operation
timeago.dart copied to clipboard

Displaying -1d when the locale is en_short

Open iEricKoh opened this issue 2 years ago • 4 comments

for the same date value, i got -1d when the locale is en_short.

when the locale is en: CleanShot 2022-10-07 at 10 41 57@2x

when the locale is en_short, CleanShot 2022-10-07 at 10 42 25@2x

iEricKoh avatar Oct 07 '22 02:10 iEricKoh

It's a "~" not "-"

"~" is usually used to indicate "roughly" or "aproximately"

migalv avatar Nov 09 '22 16:11 migalv

It's a "~" not "-"

"~" is usually used to indicate "roughly" or "aproximately"

How can I remove the tilde ~ that appears before the time? ~1d. I just want it to be 1d.

Helocominc avatar Nov 17 '22 01:11 Helocominc

We want an option to disable the sign soon.

bugrevealingbme avatar Nov 19 '22 12:11 bugrevealingbme

Yes, it would be nice to be able to disable this. But for now as a work around I guess we can do timeago.format(fifteenAgo, locale: 'en_short').replaceAll("~", "")

hgebrema avatar Dec 10 '22 14:12 hgebrema