Skip to content

Wrong time calculation when startTime after endTime (manual edit) #79

Open

Description

@Death111

image

The item with 33 minutes has properties: startTime=2021-03-02T16:34:33.525, endTime=2021-03-02T16:00:37

Activity

  1. self-assigned this
    on Mar 21, 2021
  2. added 2 commits that reference this issue on Mar 21, 2021
  3. added 4 commits that reference this issue on Apr 11, 2021
  4. JSchraff commented on Apr 14, 2021

    @JSchraff
    Contributor

    with #82 it is no longer possible to create Dates with negative duration. #80 will not be merged for now. It is still necessary to unify the use of DateFormatter and Duration. It should not be obfuscating the existence of negative durations, because this could lead to missunderstandings and hampers the ability to spot Problems.
    Therefore it should be formatted to show the negative Time everywhere correctly if somehow a negative Time gets created, or in future it is necessary to support negative work times.

  5. Death111 commented on Jul 11, 2023

    @Death111
    CollaboratorAuthor

    I also noticed that "absolute time" is calculated wrongly when there are overlapping times.

    • if I have two work items and edit them to start and stop at 14-15 o'clock.
      • Expected: Absolute time 1 hours
      • Actual: Absolute time 2 hours

    It can also be discussed on what is expected behavior here. As if both items would be "work" we would have absolute time 1h and work time displayed as 2 h - which is also confusing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions