From 8fcbf7093d58c799dbe19d69729e8360576cb25d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 4 Apr 2007 18:32:05 +0000 Subject: [PATCH] Recognize three-digit years --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 2e809347b..20f22c0ee 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1096,7 +1096,7 @@ Zotero.Date = new function(){ ((m[2] && m[4] && m[6]) || (!m[1] && !m[7]))) { // require that either all parts are found, // or else this is the entire date field // figure out date based on parts - if(m[2].length == 4 || m[3] == "\u5e74") { + if(m[2].length == 3 || m[2].length == 4 || m[3] == "\u5e74") { // ISO 8601 style date (big endian) date.year = m[2]; date.month = m[4];