UTC support
There does not seem to be any option to specify that dates should be formatted as UTC, instead of in the local timezone.
Formatting a Date value as UTC is a common need, but I wonder whether it would best be left to people using the library, rather than adding functions to it. After all, this is different from normal localization of rendering: you first need to convert the value to UTC (at least conceptually), then render that value in a localized manner. And if I’m not mistaken, you could convent a Date value in local time to a Date value in UTC e.g. as follows:
function UTC(datetime) { var u = datetime; u.setMinutes(u.getMinutes() + u.getTimezoneOffset()); return u; }
Globalize 1.x also avoids handling this kind of manipulation, since this can be handled at user side with no loss. Feel free to add new comments if you think this is not true providing examples please.
By the way, Globalize supports formatting and parsing timezones that doesn't require any additional logic to the Native JavaScript Date Object. We call it basic timezone support. It means no other timezones than the local user environment's. It also means no Olson/IANA timezone names. More information can be found on https://github.com/jquery/globalize/pull/202.
For more information of a possible implementation of Olson-timezone-ExtendedDate support can be found here: https://github.com/jquery/globalize/issues/340.