Disable OS.File for file syncs on Windows <Fx25
stat.lastModificationDate returns the last access date instead of the modification date due to bug https://bugzilla.mozilla.org/show_bug.cgi?id=899436
This commit is contained in:
parent
84c5a1bffa
commit
d5fcde0612
1 changed files with 6 additions and 2 deletions
|
@ -811,8 +811,12 @@ Zotero.Sync.Storage = new function () {
|
|||
var numItems = items.length;
|
||||
var updatedStates = {};
|
||||
|
||||
// OS.File didn't work reliably before Firefox 23, so use the old code
|
||||
if (Zotero.platformMajorVersion < 23) {
|
||||
// OS.File didn't work reliably before Firefox 23, and on Windows it returns
|
||||
// the access time instead of the modification time until Firefox 25
|
||||
// (https://bugzilla.mozilla.org/show_bug.cgi?id=899436),
|
||||
// so use the old code
|
||||
if (Zotero.platformMajorVersion < 23
|
||||
|| (Zotero.isWin && Zotero.platformMajorVersion < 25)) {
|
||||
Zotero.debug("Performing synchronous file update check");
|
||||
|
||||
for each(var item in items) {
|
||||
|
|
Loading…
Reference in a new issue