Issue Activity displays the wrong time when logging with the time tracking tool

Summary

There is a bug with the time tracking on issues when logging time of a past date with the time tracking tool. It could be relevant that the time zone is set to UTC+1. I did not test other time zones.

Steps to reproduce

  1. (Probably) Go to user profile settings and set time zone to UTC+1
  2. Open an issue and add a time entry with the time tracking tool on the right sidebar
  3. Select a past date when adding the time
  4. The Issue Activity will now display the wrong date (one day before)

Example Project

su_tux/time-tracking-bug#1

What is the current bug behavior?

The Issue Activity displays the wrong date (one day before)

What is the expected correct behavior?

There Issue Activity displays the correct date.

Also there should be no difference between logging time with a comment and logging time with the time tracking tool on the right sidebar.

Relevant logs and/or screenshots

The first time was logged with the time tracking tool on the right sidebar, the second time was logged with a comment (/spent 30m 2023-02-22).

grafik

Results to:

grafik

Output of checks

This bug happens on GitLab.com

Workarounds

  1. Utilize the quick action to add the time spent instead of the time tracking widget. e.g. /spend 30m 2024-10-02
Edited by Nilanka De Silva