Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7a36d49

Browse files
SekibOmaziclgalfaso
authored andcommitted
docs($filter): Date filter am/pm case
Use uppercase for AM/PM in date filter fixes #8763
1 parent cd21602 commit 7a36d49

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/ng/filter/filters.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,14 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d
326326
* * `'EEE'`: Day in Week, (Sun-Sat)
327327
* * `'HH'`: Hour in day, padded (00-23)
328328
* * `'H'`: Hour in day (0-23)
329-
* * `'hh'`: Hour in am/pm, padded (01-12)
330-
* * `'h'`: Hour in am/pm, (1-12)
329+
* * `'hh'`: Hour in AM/PM, padded (01-12)
330+
* * `'h'`: Hour in AM/PM, (1-12)
331331
* * `'mm'`: Minute in hour, padded (00-59)
332332
* * `'m'`: Minute in hour (0-59)
333333
* * `'ss'`: Second in minute, padded (00-59)
334334
* * `'s'`: Second in minute (0-59)
335335
* * `'.sss' or ',sss'`: Millisecond in second, padded (000-999)
336-
* * `'a'`: am/pm marker
336+
* * `'a'`: AM/PM marker
337337
* * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)
338338
* * `'ww'`: ISO-8601 week of year (00-53)
339339
* * `'w'`: ISO-8601 week of year (0-53)
@@ -342,15 +342,15 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d
342342
* {@link guide/i18n localizable formats}:
343343
*
344344
* * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale
345-
* (e.g. Sep 3, 2010 12:05:08 pm)
346-
* * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 pm)
345+
* (e.g. Sep 3, 2010 12:05:08 PM)
346+
* * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 PM)
347347
* * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US locale
348348
* (e.g. Friday, September 3, 2010)
349349
* * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010)
350350
* * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US locale (e.g. Sep 3, 2010)
351351
* * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)
352-
* * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 pm)
353-
* * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 pm)
352+
* * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)
353+
* * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)
354354
*
355355
* `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.
356356
* `"h 'in the morning'"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence

0 commit comments

Comments
 (0)