2016-08-18 4 views
1

이름이 지정된 시간대를 표시하려고하지만 운이 없다. 시간대가 표시되지 않습니다. 내가 도대체 ​​뭘 잘못하고있는 겁니까?각 모멘트 amDateFormat : 'h : mmAz'

나는 moment.min.js 모멘트 - 시간대 -와 - data.min.js 스크립트

angular.module ('응용 프로그램'을 [ 'angularMoment'])이;

답변

1

amTimezone 필터가 없습니다. 그렇지 않으면 z는 표준 시간대를 생성하지 않습니다.

{{date | | amDateFormat:"h:mm A z"}} //12:00 AM 

{{date | amTimezone: 'America/New_York' | amDateFormat:"h:mm A z"}} //12:00 AM EST 
+0

또한 'amUtc | amDateFormat' 및 amLocal | amDateFormat' - utc timezone과 로컬 시간대 비교 – Dexter

관련 문제