moment.tz('UTC') should be a valid synonym for moment.utc()
Right now:
moment().tz('UTC')
TypeError: Cannot call method 'rule' of undefined
+1
I also just ran into this issue. Ruby on rails maps this timezone to the value Etc/UTC.
http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html
I guess that's the standard identifier?
IANA's timezone database specifies Etc/UTC as the long name and UTC as the short name for the same entry. At least Etc/GMT is also specified in POSIX.
So I'm guessing the ticket should be: support all standard Tz's instead of just a random subset.
Ran into the same issue. Agree with @himdel, all standard Timezones should be supported.
Version 0.1.0 will have support for moment().tz('UTC'), see this entry in the latest data build.
@timrwood what about Etc/UTC?
Never mind see it there now: https://github.com/moment/moment-timezone/blob/b58fdcef24fc161eeb3e59bfe5e1a3edcd000529/data/packed/latest.json#L413 ;)
This is released in 0.1.0.
Most helpful comment
This is released in
0.1.0.