toggldesktop icon indicating copy to clipboard operation
toggldesktop copied to clipboard

Issue with updating the duration if a running TE when change is made via mobile.

Open VeljkoTN opened this issue 3 years ago • 2 comments

💻 Environment

Platform: Windows 10 OS Version: Windows 10 Toggl Version: 7.5.445

🐞 Actual behavior

The user starts a running timer using the iOS Track app and adjusts the start time to an earlier time. They then start the Win desktop app and the app is showing the running timer and the correct start time (the new one after edits on mobile) but it still shows the original duration.

💯 Expected behavior

The desktop app should show the new duration as well when it's started.

🔨 Steps to reproduce

  1. Use iOS app to start a timer.
  2. Edit the running timer to have earlier start time (the TE is still running).
  3. Launch Desktop App on Windows - it shows the timer running but with the original duration and the new start time.
  4. Select "Sync" on Desktop App.
  5. Desktop app still shows incorrect duration for the running TE. Start time appears correct, but timer duration is incorrect.

📦 Additional info

Intercom link

VeljkoTN avatar Apr 08 '21 12:04 VeljkoTN

another user reached out, intercom 🔗

VeljkoTN avatar Apr 13 '21 10:04 VeljkoTN

Initial investigation

Reproduced on both Windows and macOS. time_entry.cc LoadFromJSON is reading all of the duration, start, and stop from the JSON response separately, which can potentially cause issues if these properties are out of sync because they're interdependent.

There's very likely a difference in the way the new iOS app is pushing time entry updates, given the issue hasn't been reported previously and isn't reproducible with the web app -> desktop app time entry updates.

skel35 avatar Apr 20 '21 15:04 skel35