Skip to content
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

Improve formatting of relative times #62

Merged
merged 2 commits into from
Jan 3, 2022

Conversation

alkari-verende
Copy link
Contributor

This improves the display of relative times. With the current code, a operation that starts in 4 minutes 59 seconds from now is reported to start in "4 minutes". An operation starting in 1 day 23 hours is reported to start in "1 day". This leads to confusion about when the event actually starts. Using Carbon's time rounding, we now display more intuitive relative distances.

Closes #49

This improves the display of relative times.  With the current code, a operation that starts in 4 minutes 59 seconds from now is reported to start in "4 minutes". An operation starting in 1 day 23 hours is reported to start in "1 day". This leads to confusion about when the event actually starts.  Using Carbon's time rounding, we now display more intuitive relative distances.

Closes BenHUET#49
This prevents listing ongoing events as "ended 1 second ago" when they are actually still active
@warlof warlof merged commit 3ddf302 into BenHUET:master Jan 3, 2022
@alkari-verende alkari-verende deleted the fix/better_relative_times branch January 3, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Starts in" time is misleading.
2 participants