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 relative time handling #4832

Merged

Conversation

nickvergessen
Copy link
Contributor

Resolve

๐Ÿ–ผ๏ธ Screenshots

๐Ÿš๏ธ Before ๐Ÿก After
See activity from "50 hours ago" and start dying as you are bad in math instead of knowing when a colleague did something "2 days ago" helpfully obvious
Bildschirmfoto vom 2023-11-16 12-16-41 grafik

Background info

In stable27 Moment was used by the activity app, the breaking points are here:
https://github.com/moment/moment/blob/000ac1800e620f770f4eb31b5ae908f6167b0ab2/src/lib/duration/humanize.js#L4-L11

We could also go for those, but at least the 72 hours need to go.

๐Ÿ Checklist

  • โ›‘๏ธ Tests are included or are not applicable
  • ๐Ÿ“˜ Component documentation has been extended, updated or is not applicable

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen added bug Something isn't working 3. to review Waiting for reviews accessibility Making sure we design for the widest range of people possible, including those who have disabilities labels Nov 16, 2023
@nickvergessen nickvergessen added this to the 8.1.1 milestone Nov 16, 2023
@nickvergessen nickvergessen self-assigned this Nov 16, 2023
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@raimund-schluessler raimund-schluessler merged commit dc7c77f into master Nov 16, 2023
15 checks passed
@raimund-schluessler raimund-schluessler deleted the bugfix/noid/improve-relative-time-handling branch November 16, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews accessibility Making sure we design for the widest range of people possible, including those who have disabilities bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants