Project

General

Profile

Actions

Defect #16482

open

Wrong search query for timelog, when timezone not UTC

Added by Alexander Maslov over 10 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Time tracking
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

How to reproduce:

0. You are need to have server/devbox timezone set to UTC+X, where X is positive.
1. At 00:30 I'm create a timelog entry.
2. Right after this at a timelog reports page I'm select option to show only today timelog entries.
3. After pressing the search button, I'm can't see the timelog entry.
4. After the X time after 00:00, I'm can press the search button and can see the timelog entry as it need to be.

How to fix:

1. Replace all Date.today to Time.zone.today.

Patch: WIP, writing tests, investigating side effects.


Files


Related issues

Related to Redmine - Patch #22320: Respect user's timezone when comparing / parsing DatesClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #19033: Filters that utilize date/time ignore user's UTC offsetClosed

Actions
Related to Redmine - Defect #23189: Spent time by filter, offset by one dayNew

Actions
Related to Redmine - Feature #23630: Migrate to Rails 5.2ClosedJean-Philippe Lang

Actions
Has duplicate Redmine - Defect #25822: 'Spent time' report is timezone-dependent (which it should not)Closed

Actions
Has duplicate Redmine - Defect #26156: Spent time not working correctly with user's zone different from system's time zoneClosed

Actions
Actions

Also available in: Atom PDF