mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: update date pipe default timezone injection token reference (#48274)
replace deprecated `DATE_PIPE_DEFAULT_TIMEZONE` with `DATE_PIPE_DEFAULT_OPTIONS` PR Close #48274
This commit is contained in:
committed by
Andrew Scott
parent
4df7301093
commit
bec0007c82
@@ -75,7 +75,7 @@ export const DATE_PIPE_DEFAULT_OPTIONS =
|
||||
* See the [I18n guide](guide/i18n-common-format-data-locale) for more information.
|
||||
*
|
||||
* The time zone of the formatted value can be specified either by passing it in as the second
|
||||
* parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_TIMEZONE`
|
||||
* parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`
|
||||
* injection token. The value that is passed in as the second parameter takes precedence over
|
||||
* the one defined using the injection token.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user