From c08a82e83141fc14ece4e15a59aef4c9637e46c1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 3 Oct 2006 23:16:48 +0000 Subject: [PATCH] Use "CURRENT_TIMESTAMP" (as a string, which Item.save() turns into the SQL keyword) in Translate._itemDone() rather than toLocaleString() --- chrome/content/zotero/xpcom/translate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js index e3df645697..afef865af1 100644 --- a/chrome/content/zotero/xpcom/translate.js +++ b/chrome/content/zotero/xpcom/translate.js @@ -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;