Status Dashboard bandwidth graphs show incorrect month

Bug #1325994 reported by Alex Harrington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Undecided
Dan Garner

Bug Description

On servers in non-UK timezones, the incorrect month is shown for bandwidth graphs in some cases.

Patch is:

--- xmdssoap.class.php~ 2014-06-03 14:03:56.000000000 +0100
+++ xmdssoap.class.php 2014-06-03 14:54:39.000000000 +0100
@@ -1201,7 +1201,7 @@
      */
     private function LogBandwidth($displayId, $type, $sizeInBytes)
     {
- $startOfMonth = strtotime(date('m').'/01/'.date('Y').' 00:00:00');
+ $startOfMonth = strtotime(date('m').'/02/'.date('Y').' 00:00:00');

         $sql = "INSERT INTO `bandwidth` (Month, Type, DisplayID, Size) VALUES (%d, %d, %d, %d) ";
         $sql .= "ON DUPLICATE KEY UPDATE Size = Size + %d ";

Related branches

Changed in xibo:
status: New → Confirmed
milestone: none → 1.6.2
status: Confirmed → Triaged
Dan Garner (dangarner)
Changed in xibo:
status: Triaged → Fix Committed
assignee: nobody → Dan Garner (dangarner)
Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.