Use "CURRENT_TIMESTAMP" (as a string, which Item.save() turns into the SQL keyword) in Translate._itemDone() rather than toLocaleString()
This commit is contained in:
parent
c5adecb6e7
commit
c08a82e831
1 changed files with 2 additions and 2 deletions
|
@ -1110,8 +1110,8 @@ Zotero.Translate.prototype._itemDone = function(item) {
|
|||
item.itemType = item.complete = undefined;
|
||||
|
||||
// automatically set access date if URL is set
|
||||
if(item.url && item.accessDate == undefined && this.type == "web") {
|
||||
item.accessDate = (new Date()).toLocaleString();
|
||||
if(item.url && !item.accessDate && this.type == "web") {
|
||||
item.accessDate = "CURRENT_TIMESTAMP";
|
||||
}
|
||||
|
||||
var fieldID, field;
|
||||
|
|
Loading…
Reference in a new issue