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:
Dan Stillman 2006-10-03 23:16:48 +00:00
parent c5adecb6e7
commit c08a82e831

View file

@ -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;