commit c08a82e83141fc14ece4e15a59aef4c9637e46c1 parent c5adecb6e7906e1bd0283f857807ae3784093c27 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 3 Oct 2006 23:16:48 +0000 Use "CURRENT_TIMESTAMP" (as a string, which Item.save() turns into the SQL keyword) in Translate._itemDone() rather than toLocaleString() Diffstat:
| M | 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 @@ -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;