www

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

commit 8ed37732c1c000952fe92a83ebca6d33236bf61d
parent 2399f044e1d9ef7bff6432d0da9f2898b3f62c12
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 14 Jun 2006 16:59:29 +0000

JS Date() takes months 0-11, for reasons that are far from clear


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/scholar.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/chromeFiles/content/scholar/xpcom/scholar.js b/chrome/chromeFiles/content/scholar/xpcom/scholar.js @@ -405,7 +405,7 @@ Scholar.Date = new function(){ else { timeparts = [false, false, false]; } - return new Date(dateparts[0], dateparts[1], dateparts[2], + return new Date(dateparts[0], dateparts[1]-1, dateparts[2], timeparts[0], timeparts[1], timeparts[2]); } catch (e){