From 7c8b185b270a57a56da0f23d5d6a93c1543ac25b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 17 Feb 2007 23:48:53 +0000 Subject: [PATCH] Fix accessDate for attachments showing up as "false" (caused by r1162) --- chrome/content/zotero/xpcom/data_access.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data_access.js b/chrome/content/zotero/xpcom/data_access.js index 683d076cd..24942cf29 100644 --- a/chrome/content/zotero/xpcom/data_access.js +++ b/chrome/content/zotero/xpcom/data_access.js @@ -511,7 +511,8 @@ Zotero.Item.prototype.setField = function(field, value, loadIn){ if (fieldID == Zotero.ItemFields.getID('accessDate')) { if (!Zotero.Date.isSQLDate(value) && - !Zotero.Date.isSQLDateTime(value)) { + !Zotero.Date.isSQLDateTime(value) && + value != 'CURRENT_TIMESTAMP') { Zotero.debug("Discarding invalid accessDate '" + value + "' in Item.setField()"); return false;