Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use correct TZ for running timer in list view

Klaus Zandersb67a7d8e6e8d
diff --git a/modules/costs/app/components/my/time_tracking/time_entry_row.rb b/modules/costs/app/components/my/time_tracking/time_entry_row.rb
index c28f5333d33..a1b1a8f9f4d 100644
--- a/modules/costs/app/components/my/time_tracking/time_entry_row.rb
+++ b/modules/costs/app/components/my/time_tracking/time_entry_row.rb
@@ -155,7 +155,7 @@ module My
def ongoing_time
I18n.t("label_timer_since",
- time: I18n.l(time_entry.created_at, format: :time))
+ time: I18n.l(time_entry.created_at.in_time_zone(time_entry.time_zone), format: :time))
end
def time_range # rubocop:disable Metrics/AbcSize