Hello,
The chart dates are off and it seems you are using UTC date on the
client side (in you Javascript code). This weird and I don't
understand why you would use UTC date instead of the normal date.
Anyway, the fix is pretty simple and it seems to be working for me, I
don't know if this will break anything, but here is the patch:

Index: agilo/htdocs/js/jquery.flot.js
===================================================================
--- agilo/htdocs/js/jquery.flot.js      (revision 592)
+++ agilo/htdocs/js/jquery.flot.js      (working copy)
@@ -580,15 +580,15 @@
                     var step = tickSize * timeUnitSize[unit];

                     if (unit == "second")
-                        d.setUTCSeconds(floorInBase(d.getUTCSeconds
(), tickSize));
+                        d.setUTCSeconds(floorInBase(d.getSeconds(),
tickSize));
                     if (unit == "minute")
-                        d.setUTCMinutes(floorInBase(d.getUTCMinutes
(), tickSize));
+                        d.setUTCMinutes(floorInBase(d.getMinutes(),
tickSize));
                     if (unit == "hour")
-                        d.setUTCHours(floorInBase(d.getUTCHours(),
tickSize));
+                        d.setUTCHours(floorInBase(d.getHours(),
tickSize));
                     if (unit == "month")
-                        d.setUTCMonth(floorInBase(d.getUTCMonth(),
tickSize));
+                        d.setUTCMonth(floorInBase(d.getMonth(),
tickSize));
                     if (unit == "year")
-                        d.setUTCFullYear(floorInBase(d.getUTCFullYear
(), tickSize));
+                        d.setUTCFullYear(floorInBase(d.getFullYear(),
tickSize));

                     // reset smaller components
                     d.setUTCMilliseconds(0);
@@ -616,17 +616,17 @@
                                 // so we don't end up in the middle
of a day
                                 d.setUTCDate(1);
                                 var start = d.getTime();
-                                d.setUTCMonth(d.getUTCMonth() + 1);
+                                d.setUTCMonth(d.getMonth() + 1);
                                 var end = d.getTime();
                                 d.setTime(v + carry *
timeUnitSize.hour + (end - start) * tickSize);
-                                carry = d.getUTCHours();
+                                carry = d.getHours();
                                 d.setUTCHours(0);
                             }
                             else
-                                d.setUTCMonth(d.getUTCMonth() +
tickSize);
+                                d.setUTCMonth(d.getMonth() +
tickSize);
                         }
                         else if (unit == "year") {
-                            d.setUTCFullYear(d.getUTCFullYear() +
tickSize);
+                            d.setUTCFullYear(d.getFullYear() +
tickSize);
                         }
                         else
                             d.setTime(v + step);
@@ -2397,14 +2397,14 @@

             if (escape) {
                 switch (c) {
-                case 'h': c = "" + d.getUTCHours(); break;
-                case 'H': c = leftPad(d.getUTCHours()); break;
-                case 'M': c = leftPad(d.getUTCMinutes()); break;
-                case 'S': c = leftPad(d.getUTCSeconds()); break;
-                case 'd': c = "" + d.getUTCDate(); break;
-                case 'm': c = "" + (d.getUTCMonth() + 1); break;
-                case 'y': c = "" + d.getUTCFullYear(); break;
-                case 'b': c = "" + monthNames[d.getUTCMonth()];
break;
+                case 'h': c = "" + d.getHours(); break;
+                case 'H': c = leftPad(d.getHours()); break;
+                case 'M': c = leftPad(d.getMinutes()); break;
+                case 'S': c = leftPad(d.getSeconds()); break;
+                case 'd': c = "" + d.getDate(); break;
+                case 'm': c = "" + (d.getMonth() + 1); break;
+                case 'y': c = "" + d.getFullYear(); break;
+                case 'b': c = "" + monthNames[d.getMonth()]; break;
                 }
                 r.push(c);
                 escape = false;
Index: agilo/templates/widgets/agilo_burndown_chart.html
===================================================================
--- agilo/templates/widgets/agilo_burndown_chart.html   (revision 592)
+++ agilo/templates/widgets/agilo_burndown_chart.html   (working copy)
@@ -44,7 +44,7 @@

         var todayColor_${unique_id} = "$today_color";

-        var current = new Date().getUTCDate();
+        var current = new Date().getDate();

         function drawMarkings() {
             weekendMarkings = buildDayBands(weekendData_${unique_id},
"#eee");


Please let me know if there is some obvious thing wrong doing it this
way (and why!)

Thanks!
Ashwin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Agilo for Scrum" group. This group is moderated by agile42 GmbH 
http://www.agile42.com and is focused in supporting Agilo for Scrum users.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/agilo?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to