forked from globalizejs/globalize
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Date: Filter am/pm data for "a" date pattern
CLDR introduced additional dayPeriods (e.g., morning1, afternoon1, evening1, etc) along with am and pm. The new dayPeriods should be handle by "b" and "B" date patterns, while the "a" pattern should still handle am/pm. For Chinese, the corresponding value for either pm or afternoon1 is exactly the same, therefore it causes problem on the reverse lookup when parsing. This change fixes the above parsing issue by filtering am/pm only in the parser properties. It also filters it out on formatting as a simple optimization (to avoid unnecessary properties). Fixes globalizejs#509 Closes globalizejs#508
- Loading branch information
Showing
4 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters