[Pkg-javascript-commits] [dojo] 02/08: oops. default for date should be 1, since dates are 1-index based. Refs #5595 !strict
David Prévot
taffit at moszumanska.debian.org
Mon May 11 20:11:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.0.3
in repository dojo.
commit 9eb0991d535ca17e7029128873c4bad8db38ad4e
Author: Adam Peller <github at peller.org>
Date: Wed Jan 16 21:47:46 2008 +0000
oops. default for date should be 1, since dates are 1-index based. Refs #5595 !strict
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.0/dojo/trunk@12051 560b804f-0ae3-0310-86f3-f6aa0a117693
---
date/stamp.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/date/stamp.js b/date/stamp.js
index 7422dd4..8d14daa 100644
--- a/date/stamp.js
+++ b/date/stamp.js
@@ -57,7 +57,7 @@ dojo.date.stamp.fromISOString = function(/*String*/formattedString, /*Number?*/d
}
});
}
- result = new Date(match[0]||1970, match[1]||0, match[2]||0, match[3]||0, match[4]||0, match[5]||0, match[6]||0);
+ result = new Date(match[0]||1970, match[1]||0, match[2]||1, match[3]||0, match[4]||0, match[5]||0, match[6]||0);
var offset = 0;
var zoneSign = match[7] && match[7].charAt(0);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list