SiT! Bugs

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001768SiT!reportspublic2012-01-27 13:442012-02-04 12:13
Reporternicdev 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version3.65 LTS 
Target VersionFixed in Version 
Summary0001768: report_incidents_by_skill.php does not take into account the last day of the month
DescriptionThis report use the date picker and then strtotime() to create the unix timestamp for the date range.

The issue is that for example:

Incidents by skill between 01 Jan 2011 and 31 Jan 2011 gives the following:
the code: strtotime($_REQUEST['enddate']);
strtotime(2011-01-31) gives 1296428400 which is "Sun, 30 Jan 2011 23:00:00 GMT"


But we should do strtotime(2011-01-31 23:59:59) which gives 1296514799 which is "Mon, 31 Jan 2011 22:59:59 GMT"
This will ensure that we do not lose the last day of the month. The date picker does not pass the hours :-)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2012-01-27 13:44 nicdev New Issue
2012-02-04 12:13 paulh Status new => confirmed


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker