From 5cd6f4b479964eadf1c7a1ca173febec729cc37b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 30 May 2011 16:48:39 -0700 Subject: [PATCH] fix js off-by-one in month --- server/go/camlistored/ui/camli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/go/camlistored/ui/camli.js b/server/go/camlistored/ui/camli.js index 6b5ec3ef2..f674a772b 100644 --- a/server/go/camlistored/ui/camli.js +++ b/server/go/camlistored/ui/camli.js @@ -45,7 +45,7 @@ function dateToRfc3339String(dateVal) { } return numStr; } - return dateVal.getUTCFullYear() + "-" + pad(dateVal.getUTCMonth(), 2) + "-" + pad(dateVal.getUTCDate(), 2) + "T" + + return dateVal.getUTCFullYear() + "-" + pad(dateVal.getUTCMonth() + 1, 2) + "-" + pad(dateVal.getUTCDate(), 2) + "T" + pad(dateVal.getUTCHours(), 2) + ":" + pad(dateVal.getUTCMinutes(), 2) + ":" + pad(dateVal.getUTCSeconds(), 2) + "Z"; }