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
Time is rounded differently #145
Comments
Same issue with posts on home page. Post made 51 minutes ago shows as "1h" in Elk. |
Probably same issue, so I'll post it here. Post time: "26 November 2022 at 00:08:16" (also Mastodon doesn't show seconds in tooltip, Elk does) Elk shows it as "yesterday". Mastodon correctly shows "22h". |
@cyberalien can you check it again? I'm checking on home page and it seems to be correct. |
Still bugged.
|
@cyberalien the problem is the round usage here https://github.com/vueuse/vueuse/blob/main/packages/core/useTimeAgo/index.ts#L163 , it should be a I'll send a PR to vue use... |
@cyberalien PR sent: vueuse/vueuse#2543 (once feat released we need to configure /cc @antfu |
There is a difference in rounding time in notifications in Mastodon and Elk.
Example post:
Difference is 8:36
In top right corner of notification Elk shows "9h", Mastodon shows "8h".
I think Mastodon's approach of rounding down is better. 9 hours haven't passed.
edit: actually, boosted time is irrelevant. It uses current time. Still 9 hours haven't passed yet since post as it is currently 21:30.
The text was updated successfully, but these errors were encountered: