angular/packages/common/src
Pete Bacon Darwin c6e5fc4fbe fix(common): format day-periods that cross midnight (#36611)
When formatting a time with the `b` or `B` format codes, the rendered
string was not correctly handling day periods that spanned midnight.
Instead the logic was falling back to the default case of `AM`.

Now the logic has been updated so that it matches times that are within
a day period that spans midnight, so it will now render the correct
output, such as `at night` in the case of English.

Applications that are using either `formatDate()` or `DatePipe` and any
of the `b` or `B` format codes will be affected by this change.

Fixes #36566

PR Close #36611
2020-04-16 09:40:40 -07:00
..
directives build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
i18n fix(common): format day-periods that cross midnight (#36611) 2020-04-16 09:40:40 -07:00
location build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
pipes build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
common.ts Revert: "feat(ivy): convert [ngStyle] and [ngClass] to use ivy styling bindings" (#34616) 2020-01-24 12:22:44 -08:00
common_module.ts fix(common): remove deprecated support for intl API (#29250) 2019-10-17 20:44:17 -04:00
cookie.ts feat(common): on-by-default XSRF support in HttpClient (#18108) 2017-07-13 17:22:02 -07:00
dom_adapter.ts build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
dom_tokens.ts docs(common): Fixes typo (#33003) 2019-10-10 13:55:40 -07:00
platform_id.ts docs: convert all @experimental tags to @publicApi tags (#26595) 2018-10-19 14:35:52 -07:00
private_export.ts build: remove unneeded style code for ngClass and ngStyle (#34998) 2020-01-29 14:57:21 -08:00
version.ts docs: common with @publicApi tags (#26595) 2018-10-19 14:35:53 -07:00
viewport_scroller.ts build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00