Moment Timezone js使用时区和utc

时间:2018-08-30 04:58:08

标签: momentjs moment-timezone

我有以下JS代码:

serializer.save()

输出为

var melTime = moment.tz("2013-05-18 09:55", "Australia/Melbourne");
console.log(melTime.format())
console.log(melTime.utc().format());

根据维基百科-https://en.wikipedia.org/wiki/List_of_tz_database_time_zones, 为了转换为UTC,2013-05-18T09:55:00+10:00 2013-05-17T23:55:00Z 的计算方法不应该像melTime.utc().format()的+10:00而不是-10:00那样计算吗?

第二个问题,我没有在文档中找到它,2013-05-18 09:55会被转换为本地时区吗?

谢谢

0 个答案:

没有答案