angular: DatePipe doesn't allow timezone to be provided as a pipe input
DatePipe of Angular 2.0.0 RC2 doesn’t allow to interpret date with timezone like AngularJS 1.5 does (https://docs.angularjs.org/api/ng/filter/date) as the second argument (timezone)
Angular 1 template api:
{{ date_expression | date : format : timezone}}
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 12
- Comments: 25 (10 by maintainers)
Commits related to this issue
- feat(core): replace intl API by our own locale files Fixes #10809, #9524, #7008, #9324, #7590, #6724, #3429, #17576, #17478, #17319, #17200, #16838, #16624, #16625, #16591, #14131, #12632, #11376, #1... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): replace intl API by our own locale files Fixes #10809, #9524, #7008, #9324, #7590, #6724, #3429, #17576, #17478, #17319, #17200, #16838, #16624, #16625, #16591, #14131, #12632, #11376, #1... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): replace intl API by our own locale files Fixes #10809, #9524, #7008, #9324, #7590, #6724, #3429, #17576, #17478, #17319, #17200, #16838, #16624, #16625, #16591, #14131, #12632, #11376, #1... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): replace intl API by our own locale files Fixes #10809, #9524, #7008, #9324, #7590, #6724, #3429, #17576, #17478, #17319, #17200, #16838, #16624, #16625, #16591, #14131, #12632, #11376, #1... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(core): remove dependency to intl API BREAKING CHANGE: all i18n pipes have been updated to not require the intl API anymore. Some results might vary, see the document to update from v4 to v5 for ... — committed to ocombe/angular by ocombe 7 years ago
- feat(common): drop use of the Intl API to improve browser support BREAKING CHANGE: Because of multiple bugs and browser inconsistencies, we have dropped the intl api in favor of data exported from th... — committed to ocombe/angular by ocombe 7 years ago
- feat(common): drop use of the Intl API to improve browser support BREAKING CHANGE: Because of multiple bugs and browser inconsistencies, we have dropped the intl api in favor of data exported from th... — committed to ocombe/angular by ocombe 7 years ago
- feat(common): drop use of the Intl API to improve browser support BREAKING CHANGE: Because of multiple bugs and browser inconsistencies, we have dropped the intl api in favor of data exported from th... — committed to ocombe/angular by ocombe 7 years ago
yes
Hello, the timezone option as a third argument of the date pipe will be added with the PR to replace the intl API for angular v5 (see https://github.com/angular/angular/issues/10809)
@MarkPieszak z and Z are used in the format to display the timezone, not as the interpreter! Please read the doc of angularJS (link in the question)
Sorry for my limited knowledge, what values can
timezone
variable take? I’m working with angular 5 I mean can I use it this way : {{ test?.end_datetime | date : “h:mm a” : “CET” }} Thanks+1 for @natcohen suggestion to include this in upcoming features.