View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012363 | mantisbt | time tracking | public | 2010-09-16 11:04 | 2010-12-17 04:40 |
Reporter | fabian_eschrich | Assigned To | dhx | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.3 | ||||
Target Version | 1.2.4 | Fixed in Version | 1.2.4 | ||
Summary | 0012363: billing report seems not to include enddate | ||||
Description | When I click on billing to see how much my coders worked. I choose timespan 2010-08-01 to 2010-08-31, 2010-08-31 is not included. Only when I choose 2010-09-01 as enddate, the 31th is included. Maybe query uses < instead of <= | ||||
Tags | No tags attached. | ||||
Thanks for the bug report. I think I have now fixed it. I haven't tested this patch because the built in billing system is likely going to be deprecated in a future version of MantisBT (in favour of a plugin such as TimeCard, see git.mantisforge.org). I would really appreciate if you could test the patch and confirm whether it fixes the problem for you. If it doesn't, please feel free to reopen this bug report. |
|
thanks for this fix, but it does not solve the problem. |
|
@dhx similar fix needs to be applied to bugnote_stats_get_events_array function (just like to bugnote_stats_get_project_array), see patch calls-to-strtotime-fixed.patch in issue 0012154 |
|
Thanks Fabian and vr5. I'll have this fixed shortly. In the mean time see 0012154 for vr5's patch. |
|
Sorry for the delay, I've finally pushed the patch to solve this issue. Thanks vr5 for your patch (it is what I've used in this latest commit). |
|
MantisBT: master db2b0070 2010-09-17 22:43 Details Diff |
Fix 0012363: Billing report end date not included in range The end date of a billing report page is not included in the range of issues parsed by the report. This is due to a bug inside bugnote_stats_get_project_array(..) of bugnote_api.php that misinterprets the PHP documentation of how the strtotime() function operates. |
Affected Issues 0012363 |
|
mod - core/bugnote_api.php | Diff File | ||
MantisBT: master-1.2.x aa9540d2 2010-09-17 22:43 Details Diff |
Fix 0012363: Billing report end date not included in range The end date of a billing report page is not included in the range of issues parsed by the report. This is due to a bug inside bugnote_stats_get_project_array(..) of bugnote_api.php that misinterprets the PHP documentation of how the strtotime() function operates. |
Affected Issues 0012363 |
|
mod - core/bugnote_api.php | Diff File | ||
MantisBT: master a14b882d 2010-11-19 08:53 Details Diff |
Fix 0012363: Billing report end date is inaccurate The strototime() function was being called incorrectly, leading to the last day of a billing report range not being included in the results. There was also an off-by-one-second mistake with calculating the timestamp denoting the end of any given day in the billing report range. Thanks to vr5 for the initial patch. |
Affected Issues 0012363 |
|
mod - core/bugnote_api.php | Diff File | ||
MantisBT: master-1.2.x 0bf8b4f6 2010-11-19 08:53 Details Diff |
Fix 0012363: Billing report end date is inaccurate The strototime() function was being called incorrectly, leading to the last day of a billing report range not being included in the results. There was also an off-by-one-second mistake with calculating the timestamp denoting the end of any given day in the billing report range. Thanks to vr5 for the initial patch. |
Affected Issues 0012363 |
|
mod - core/bugnote_api.php | Diff File |