www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 90d57c4afef625dbcad4d9b6ee038cccfe71e1d4
parent ba89dbf0ae0617a14c269bf6f831f47653cfb566
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  2 Jun 2014 18:31:23 -0400

Merge pull request #494 from aurimasv/csljson-date

Fix CSL-JSON date import
Diffstat:
Mchrome/content/zotero/xpcom/utilities.js | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -1622,11 +1622,10 @@ Zotero.Utilities = { if(Zotero.ItemFields.isValidForType(fieldID, itemTypeID)) { var date = ""; - if(cslDate.literal) { + if(cslDate.literal || cslDate.raw) { + date = cslDate.literal || cslDate.raw; if(variable === "accessed") { - date = strToISO(cslDate.literal); - } else { - date = cslDate.literal; + date = Zotero.Date.strToISO(date); } } else { var newDate = Zotero.Utilities.deepCopy(cslDate);