More daylight saving time

This commit is contained in:
Dan Stillman 2016-03-13 20:27:18 -04:00
parent 75bf69526c
commit d86b622c0a

View file

@ -1072,7 +1072,7 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = {
response, ".//D:getlastmodified", { D: 'DAV:' }
);
lastModified = Zotero.Date.strToISO(lastModified);
lastModified = Zotero.Date.sqlToDate(lastModified);
lastModified = Zotero.Date.sqlToDate(lastModified, true);
// Delete files older than a day before last sync time
var days = (lastSyncDate - lastModified) / 1000 / 60 / 60 / 24;