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

Replace moment relative time formatting with custom formatRelative #14149

Merged
merged 6 commits into from
Mar 14, 2022

Conversation

niik
Copy link
Member

@niik niik commented Mar 11, 2022

Description

Based on #14148 this PR replaces all of our uses of moment's relative time formatting in favor of a custom (based on GitHub.com's relative-time.ts functions) relative time formatter.

One noteworthy, user facing change, in this PR is the removal of our ultra-compact (or so called "abbreviated") relative time format in favor of the regular format

Before

image

After

image

This is in line with what GitHub.com does these days. Commits, PR lists, etc, all use the regular format instead of the micro format.

With this we're able to unship moment-duration-format and we're inches away from unshipping all of moment

Release notes

Notes: no-notes

Base automatically changed from format-duration to development March 11, 2022 17:21
tidy-dev
tidy-dev previously approved these changes Mar 11, 2022
Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

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

✨ Looks good and change in dates makes sense!

@tidy-dev tidy-dev self-assigned this Mar 11, 2022
@niik
Copy link
Member Author

niik commented Mar 14, 2022

@tidy-dev I ran into a yarn.lock merge conflict here thanks to #14153, could I get another ✅ please?

@niik niik requested a review from tidy-dev March 14, 2022 13:04
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.

None yet

2 participants