mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| directives | ||
| i18n | ||
| location | ||
| pipes | ||
| common.ts | ||
| common_module.ts | ||
| cookie.ts | ||
| dom_adapter.ts | ||
| dom_tokens.ts | ||
| platform_id.ts | ||
| private_export.ts | ||
| version.ts | ||
| viewport_scroller.ts | ||