You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sirona.apache.org by rm...@apache.org on 2013/11/13 13:39:33 UTC

svn commit: r1541503 - /incubator/sirona/trunk/server/reporting/src/main/resources/resources/js/sirona.js

Author: rmannibucau
Date: Wed Nov 13 12:39:32 2013
New Revision: 1541503

URL: http://svn.apache.org/r1541503
Log:
no need to go until tomorrow since we are pretty sure to not get any data

Modified:
    incubator/sirona/trunk/server/reporting/src/main/resources/resources/js/sirona.js

Modified: incubator/sirona/trunk/server/reporting/src/main/resources/resources/js/sirona.js
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/server/reporting/src/main/resources/resources/js/sirona.js?rev=1541503&r1=1541502&r2=1541503&view=diff
==============================================================================
--- incubator/sirona/trunk/server/reporting/src/main/resources/resources/js/sirona.js (original)
+++ incubator/sirona/trunk/server/reporting/src/main/resources/resources/js/sirona.js Wed Nov 13 12:39:32 2013
@@ -48,11 +48,10 @@
         var yesterday = new Date();
         yesterday.setTime(yesterday.getTime() - dayDuration);
 
-        var tomorrow = new Date();
-        tomorrow.setTime(tomorrow.getTime() + dayDuration);
+        var now = new Date();
 
         startDateTimePicker.data('datetimepicker').setLocalDate(yesterday);
-        endDateTimePicker.data('datetimepicker').setLocalDate(tomorrow);
+        endDateTimePicker.data('datetimepicker').setLocalDate(now);
 
         var doUpdateGraph = function () {
             Sirona.updateGraph(mapping, plugin, graph,