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

Fix 3279: Relative timestamp showing date before yesterday should not error out #3282

Merged
merged 3 commits into from
Jun 29, 2020

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Jun 27, 2020

Fixes #3279.

Changelog Entry

Fixes

  • Fixes #3279. Fix relative timestamp errored out when showing a time before yesterday, by @compulim in PR #3282

Description

In relative timestamp, it should not error out when showing a date before yesterday.

Specific Changes

  • In useRelativeTimeFormatter, use useDateFormatter instead of getLocaleString
  • Add deprecation notes to useLocalizeDate that were missing in original PR

  • Testing Added

@compulim compulim merged commit 4f575b6 into microsoft:master Jun 29, 2020
@compulim compulim deleted the fix-3279-yesterday branch June 29, 2020 21:21
@compulim compulim mentioned this pull request Jul 13, 2020
42 tasks
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.

Investigate if timestamp of 48+ hours will throw error on render
2 participants