[Pkg-javascript-commits] [dojo] 05/11: Merge [11718] on to 1.0 branch. Fixes #5276, #5315
David Prévot
taffit at moszumanska.debian.org
Mon May 11 20:11:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.0.2
in repository dojo.
commit 84ec2e72f6b4b5fa6e711b04afaae17bf212d3f8
Author: Adam Peller <github at peller.org>
Date: Thu Dec 6 14:39:26 2007 +0000
Merge [11718] on to 1.0 branch. Fixes #5276, #5315
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.0/dojo/trunk@11728 560b804f-0ae3-0310-86f3-f6aa0a117693
---
date.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/date.js b/date.js
index 772e12e..ec95b88 100644
--- a/date.js
+++ b/date.js
@@ -182,11 +182,11 @@ dojo.date.add = function(/*Date*/date, /*String*/interval, /*int*/amount){
case "minute":
case "second":
case "millisecond":
- property = interval.charAt(0).toUpperCase() + interval.substring(1) + "s";
+ property = "UTC" + interval.charAt(0).toUpperCase() + interval.substring(1) + "s";
}
if(property){
- sum["setUTC"+property](sum["getUTC"+property]()+amount);
+ sum["set"+property](sum["get"+property]()+amount);
}
if(fixOvershoot && (sum.getDate() < date.getDate())){
--
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