From 04aa0581be23aa46e8ea8be49c15617eccab4fcf Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 6 Jul 2009 11:42:03 +0000 Subject: [PATCH] Date portion of SQL datetimes entered into date fields would be lost on edit --- chrome/content/zotero/xpcom/zotero.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index ac924ece9..9ab5aa1e8 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1844,6 +1844,9 @@ Zotero.Date = new function(){ * e.g. '2006-11-03 November 3rd, 2006' */ function isMultipart(str){ + if (isSQLDateTime(str)) { + return false; + } return _multipartRE.test(str); }