1

Just trying to get named timezone displayed but no luck. Time zone is not displayed. What am I doing wrong?

I have moment.min.js and moment-timezone-with-data.min.js scripts

angular.module('app', ['angularMoment']);

4

1 回答 1

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
于 2016-11-16T02:45:17.003 回答