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

return correct formatted time for given locale #936

Merged
merged 1 commit into from Aug 30, 2021

Conversation

yen-tt
Copy link
Contributor

@yen-tt yen-tt commented Aug 26, 2021

use the defined field this._locale instead of this.locale. This will cause some changes in percy snapshots

test=manual
launched test site and see that es pages use h24 format and en use h12 format

use the defined field `this._locale` instead of `this.locale`. This will cause some changes in percy snapshots

launched test site and see that es pages use h24 format and en use h12 format
@coveralls
Copy link

Coverage Status

Coverage remained the same at 8.059% when pulling 1e54146 on dev/fix-localized-time-string into ff0114d on develop.

@cea2aj
Copy link
Member

cea2aj commented Aug 26, 2021

I would let Product know about this issue. They may even want it in as a hotfix

@tmeyer2115
Copy link
Collaborator

To @cea2aj 's point, we may want this in a Theme v1.23.1 hotfix. We may also want a HH Post so people can patch their older versions. I will get with Product on that. But, we should be good to merge into develop for now.

@tmeyer2115 tmeyer2115 merged commit df97c5d into develop Aug 30, 2021
tmeyer2115 pushed a commit that referenced this pull request Aug 30, 2021
use the defined field `this._locale` instead of `this.locale`. This will cause some changes in percy snapshots

launched test site and see that es pages use h24 format and en use h12 format

Co-authored-by: Yen Truong <ytruong@yext.com>
@tmeyer2115 tmeyer2115 mentioned this pull request Aug 30, 2021
tmeyer2115 added a commit that referenced this pull request Aug 30, 2021
### Bug Fixes
- Corrected a typo that was causing hours information to be improperly localized in our formatters. (#936)
@tmeyer2115 tmeyer2115 mentioned this pull request Sep 14, 2021
tmeyer2115 added a commit that referenced this pull request Sep 14, 2021
### Bug Fixes
- Corrected a typo that was causing hours information to be improperly localized in our formatters. (#936)
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

4 participants