Skip to content

Commit

Permalink
Merge pull request espruino#3575 from atjn/remove-meridians
Browse files Browse the repository at this point in the history
locale: Remove meridians from time patterns
  • Loading branch information
gfwilliams authored Sep 24, 2024
2 parents 4eb59fe + f57992f commit 4689f45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions apps/locale/locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@
"%a": `${js(locale.abday)}.split(',')[d.getDay()]`,
"%B": `${js(locale.month)}.split(',')[d.getMonth()]`,
"%b": `${js(locale.abmonth)}.split(',')[d.getMonth()]`,
"%p": `d.getHours()<12?${js(locale.ampm[0].toUpperCase())}:${js(locale.ampm[1].toUpperCase())}`,
"%P": `d.getHours()<12?${js(locale.ampm[0].toLowerCase())}:${js(locale.ampm[1].toLowerCase())}`
};

var timeN = patternToCode(locale.timePattern[0]);
Expand Down
2 changes: 0 additions & 2 deletions apps/locale/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ timePattern / datePattern:
%H hour (00..23)
%M minute (00..59)
%S second (00..60)
%p locale's equivalent of either AM or PM; blank if not known
%P like %p, but lower case
in locales:
Expand Down

0 comments on commit 4689f45

Please sign in to comment.