SiT! Bugs - SiT!
View Issue Details
0001938SiT!reportspublic2014-05-19 13:452014-05-19 14:30
Frans 
 
normalminoralways
newopen 
linuxcentos2.6+later
3.67 LTS 
 
0001938: Statistics shows wrong day in first column.
Using dashboard_statistics: open the statistics page
using the button of this dashboard table.
The first column has the names of the days.
One day is missing.
The reason for the missing day is the time zone, which is negative in south America.
Solution added.
File : statistics.php
Lines 241->245 and 255->259 and 263->266.
Change the first parameter of the first mktime.
Change zero hours to 12 hours.
No tags attached.
? statistics.php (25,491) 2014-05-19 13:45
http://bugs.sitracker.org/file_download.php?file_id=251&type=bug
? statistics_daybreakdown.inc.php (1,617) 2014-05-19 14:25
http://bugs.sitracker.org/file_download.php?file_id=252&type=bug
Issue History
2014-05-19 13:45FransNew Issue
2014-05-19 13:45FransFile Added: statistics.php
2014-05-19 14:24FransNote Added: 0004940
2014-05-19 14:25FransFile Added: statistics_daybreakdown.inc.php
2014-05-19 14:30FransNote Added: 0004941

Notes
(0004940)
Frans   
2014-05-19 14:24   
Same correction in the file: inc\statistics_Daybreakdown.inc.php
(0004941)
Frans   
2014-05-19 14:30   
The file statistics_Daybreakdown.inc.php
has an error in the line: 34
echo "<h2>".sprintf($strStatsFromDayStatistics, $dateString);
Must be $dayString :
echo "<h2>".sprintf($strStatsFromDayStatistics, $dayString);