mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +01:00
wombat: remove timezone offset, as Date.now() already UTC
This commit is contained in:
parent
52ccf81711
commit
fe6335cf16
@ -609,7 +609,9 @@ _WBWombat = (function() {
|
||||
//============================================
|
||||
function init_date_override(timestamp) {
|
||||
timestamp = parseInt(timestamp) * 1000;
|
||||
var timezone = new Date().getTimezoneOffset() * 60 * 1000;
|
||||
//var timezone = new Date().getTimezoneOffset() * 60 * 1000;
|
||||
// Already UTC!
|
||||
var timezone = 0;
|
||||
var timediff = Date.now() - (timestamp - timezone);
|
||||
|
||||
window.__Date = window.Date;
|
||||
|
Loading…
x
Reference in New Issue
Block a user