From ee74030d034de2645e3ed1de4bf4a7472d0e7bcd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 19 Jul 2016 18:51:15 -0400 Subject: [PATCH] Warn if attachmentSyncedModificationTime is set to too-low timestamp --- chrome/content/zotero/xpcom/data/item.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index e96cdff8a..f1cd7bc7d 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -2947,6 +2947,10 @@ Zotero.defineProperty(Zotero.Item.prototype, 'attachmentSyncedModificationTime', if (parseInt(val) != val || val < 0) { throw new Error("attachmentSyncedModificationTime must be a timestamp in milliseconds"); } + if (val < 10000000000) { + Zotero.logError("attachmentSyncedModificationTime should be a timestamp in milliseconds " + + "-- " + val + " given"); + } if (val == this._attachmentSyncedModificationTime) { return;