From: <gi...@ma...> - 2010-09-18 02:55:52
|
The branch, master has been updated via db2b0070b8cd414ff70e354d51df60d98202944a (commit) from 8ce72fe1acf97a6692ebc4344d8c19f2e908ece3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit db2b0070b8cd414ff70e354d51df60d98202944a Author: David Hicks <hic...@op...> Date: Sat Sep 18 12:43:52 2010 +1000 Fix #12363: 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. ----------------------------------------------------------------------- Summary of changes: core/bugnote_api.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ----------------------------------------------------------------------- commit db2b0070b8cd414ff70e354d51df60d98202944a Author: David Hicks <hic...@op...> Date: Sat Sep 18 12:43:52 2010 +1000 Fix #12363: 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. diff --git a/core/bugnote_api.php b/core/bugnote_api.php index 4f90004..d5905fc 100644 --- a/core/bugnote_api.php +++ b/core/bugnote_api.php @@ -647,7 +647,7 @@ function bugnote_stats_get_events_array( $p_bug_id, $p_from, $p_to ) { function bugnote_stats_get_project_array( $p_project_id, $p_from, $p_to, $p_cost ) { $c_project_id = db_prepare_int( $p_project_id ); - $c_to = strtotime( $p_to, SECONDS_PER_DAY - 1); // @23:59:59 + $c_to = strtotime( $p_to ) + SECONDS_PER_DAY; $c_from = strtotime( $p_from ); if ( $c_to === false || $c_from === false ) { ----------------------------------------------------------------------- -- Mantis Bug Tracker |