我的问题类似于Same date in different time zone,但我认为不使用momentjs来获得具有相同本地时间和不同偏移量的最终unix时间。简单的JavaScript能够实现这一目标吗?输入18-02-2015 21:08:34 +01:00
结果:
result2: 18-02-2015 21:08:34 +01:00
result3: 18-02-2015 21:08:34 +10:00
result4: 18-02-2015 21:08:34 +05:00
result5: 18-02-2015 21:08:34 -06:00
result6: 18-02-2015 21:08:34 -11:00