Merge pull request #494 from aurimasv/csljson-date
Fix CSL-JSON date import
This commit is contained in:
commit
90d57c4afe
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue