Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Handle the overlap resolution edge case where the start time of both …
Browse files Browse the repository at this point in the history
…time entries is equal (mac)
  • Loading branch information
skel35 committed Dec 4, 2020
1 parent f97b9f9 commit 1af5c13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ final class TimelineData {
let started = entry.timeEntry.started else { return }

// Set the end time as a start time of selected entry
DesktopLibraryBridge.shared().updateTimeEntryWithEnd(atTimestamp: started.timeIntervalSince1970 - 1,
DesktopLibraryBridge.shared().updateTimeEntryWithEnd(atTimestamp: started.timeIntervalSince1970,
guid: firstEntry.timeEntry.guid)
}

Expand All @@ -222,7 +222,7 @@ final class TimelineData {
let endAt = firstEntry.timeEntry.ended else { return }

// Set the start time as a stop time of First entry
DesktopLibraryBridge.shared().updateTimeEntryWithStart(atTimestamp: endAt.timeIntervalSince1970 + 1,
DesktopLibraryBridge.shared().updateTimeEntryWithStart(atTimestamp: endAt.timeIntervalSince1970,
guid: entry.timeEntry.guid,
keepEndTimeFixed: true)
}
Expand Down

0 comments on commit 1af5c13

Please sign in to comment.