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

Correctly format future dates farther away than tomorrow #1438

Merged
merged 1 commit into from
Jun 4, 2020
Merged

Correctly format future dates farther away than tomorrow #1438

merged 1 commit into from
Jun 4, 2020

Conversation

emroussel
Copy link
Contributor

@emroussel emroussel commented May 13, 2020

Description

Fixes #1429

Add support for these two cases in polaris guidelines for future dates in i18n.formatDate when passing DateStyle.Humanize.

  • In the last 7 days: Friday at 10:30 am
  • 7 days to 1 year: Aug 14 at 10:30 am

Type of change

  • dates Minor: New feature (non-breaking change which adds functionality)
  • react-i18n Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above

@ghost ghost added the cla-needed label May 13, 2020
@ghost ghost removed the cla-needed label May 13, 2020
@marutypes
Copy link
Contributor

marutypes commented May 20, 2020

Hey, thanks for the PR! I think @jaxee built the current future date functionality, so she probably has good context to take a look :)

PS sorry for the delay in getting to it.

@marutypes marutypes requested a review from jaxee May 20, 2020 20:51
Copy link
Contributor

@jaxee jaxee left a comment

Choose a reason for hiding this comment

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

👋 Hello! Thank you so much for adding to the support for future dates - you beat me to it 😄
I've left some feedback

@emroussel
Copy link
Contributor Author

@jaxee thanks for the feedback, just updated the branch/PR!

@emroussel emroussel requested a review from jaxee June 1, 2020 14:58
@emroussel
Copy link
Contributor Author

@jaxee do you have any more feedback?

Copy link
Contributor

@jaxee jaxee left a comment

Choose a reason for hiding this comment

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

Looks great!

@emroussel
Copy link
Contributor Author

Great! What does the merge/release process look like (I don't have permission to merge since I don't have write access to this repo)?

@marutypes
Copy link
Contributor

@emroussel I'll do a merge and release for you shortly :)

@marutypes marutypes merged commit 16eb01b into Shopify:master Jun 4, 2020
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.

i18n.formatDate with DateStyle.Humanize doesn't follow polaris guidelines for future dates
3 participants