weekly report excludes last day

Bug #898607 reported by Elvin Risti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eventum
Fix Released
Low
Elan Ruusamäe

Bug Description

when making Custom Fields Weekly Report and selecting Report Type as 'Weekly' then date selection is example
Nov 28th - Dec 4th

now criteria will be between '2011-11-28' AND '2011-12-04'
as the sql field type is datetime then this would be like '2011-11-28 00:00' AND '2011-12-04 00:00' which means the last day (2011-12-04) is excluded.

criteria should be then '2011-11-28 00:00' AND '2011-12-04 23:59'

Revision history for this message
Elvin Risti (elvin-risti) wrote :
Elan Ruusamäe (glen666)
Changed in eventum:
importance: Undecided → Low
status: New → Triaged
Elan Ruusamäe (glen666)
Changed in eventum:
milestone: none → 2.3.4
Elan Ruusamäe (glen666)
Changed in eventum:
milestone: 2.3.4 → 2.4
Revision history for this message
Elan Ruusamäe (glen666) wrote :

the query it makes is:

 SELECT
                    iss_id,
                    SUM(ttr_time_spent) ttr_time_spent_sum,
                    iss_summary,
                    iss_customer_id,
                    iss_private

                 FROM
                    eventum.eventum_time_tracking,
                        eventum.eventum_issue
                    WHERE
                        iss_prj_id=1 AND
                        ttr_created_date BETWEEN '2014-10-13' AND '2014-10-19' AND
                        ttr_iss_id = iss_id AND

                        ttr_iss_id = iss_id

                    GROUP BY
                    iss_id

Revision history for this message
Elan Ruusamäe (glen666) wrote :

changed to:

                        ttr_created_date BETWEEN '2014-10-13 00:00:00' AND '2014-10-19 23:59:59' AND

Revision history for this message
Elan Ruusamäe (glen666) wrote :
Changed in eventum:
assignee: nobody → Elan Ruusamäe (glen666)
status: Triaged → Fix Committed
Elan Ruusamäe (glen666)
Changed in eventum:
milestone: 2.4 → 3.0
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.