我有以下纪元时间1374188400000000
:
GMT: Thu, 18 Jul 2013 23:00:00 GMT
local time zone: 7/19/2013 12:00:00 AM GMT+1
如何更新纪元以使其包含本地日期时间(提前 1 天)而不是原始日期时间?
我尝试了以下但不起作用:
var utcSeconds = 1374188400000000;
var d = new Date(0); // The 0 there is the key, which sets the date to the epoch
d.setUTCSeconds(utcSeconds);