commit 06be99acfadfba4b6b28b62fb660afb996c88f13
parent b874641bf97c41d38675dfc1ba147845404f3e00
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 8 Jun 2011 14:19:16 +0000
parse mm/yyyy properly even on non-US systems
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/date.js b/chrome/content/zotero/xpcom/date.js
@@ -256,6 +256,9 @@ Zotero.Date = new function(){
date.year = m[2];
date.month = m[4];
date.day = m[6];
+ } else if(m[2] && !m[4] && m[6]) {
+ date.month = m[2];
+ date.year = m[6];
} else {
// local style date (middle or little endian)
date.year = m[6];