Warn if attachmentSyncedModificationTime is set to too-low timestamp
This commit is contained in:
parent
3655c09450
commit
ee74030d03
|
@ -2947,6 +2947,10 @@ Zotero.defineProperty(Zotero.Item.prototype, 'attachmentSyncedModificationTime',
|
||||||
if (parseInt(val) != val || val < 0) {
|
if (parseInt(val) != val || val < 0) {
|
||||||
throw new Error("attachmentSyncedModificationTime must be a timestamp in milliseconds");
|
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) {
|
if (val == this._attachmentSyncedModificationTime) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user