commit ee74030d034de2645e3ed1de4bf4a7472d0e7bcd parent 3655c0945048b10ec3d71c26f1a1c55d07afc9cc Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 19 Jul 2016 18:51:15 -0400 Warn if attachmentSyncedModificationTime is set to too-low timestamp Diffstat:
| M | chrome/content/zotero/xpcom/data/item.js | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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;