diff --git a/src/util_dateparser.js b/src/util_dateparser.js index ebcc7083b..3ac86e72e 100644 --- a/src/util_dateparser.js +++ b/src/util_dateparser.js @@ -286,6 +286,7 @@ CSL.DateParser = function () { var yearIsNegative = false; var lst; if (txt) { + txt = txt.replace(/^(.*[0-9])T[0-9].*/, "$1"); // If string leads with a minus sign, strip and memo it. if (txt.slice(0, 1) === "-") { yearIsNegative = true;