Skip to content

aggregate calculates wrong time if used with --current #293

Closed
@ybc37

Description

If aggregate is used with --current and it takes more than the current day into account, the calculation of the current aggregated day is wrong.
Example:

$ watson status
Project xy started 2 hours ago (2019.07.04 10:26:45+0200)


$ watson log -dc
Thursday 04 July 2019 (2h 17m 31s)
        current  10:26 to 12:44   2h 17m 31s  xy


$ watson report -dc
Thu 04 July 2019 -> Thu 04 July 2019

xy - 2h 17m 50s


$ watson aggregate -c --from 2019-07-03
Wed 03 July 2019 - 7h 17m 42s
  xy - 7h 17m 42s

Thu 04 July 2019 - 4h 36m 51s
  xy - 4h 36m 51s

Expected result of Thu 04 July 2019: 2h 17m ??s
Expected result of Thu 04 July 2019: 4h 36m 51s

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions