You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The badge that is on the left side, in column 1, seems to render in the date prior to the first event of the date. The case timeline is in UTC. The date and time for events are showing in UTC. The outcome does not seem to be impacted by the offset provided, since the bug seems to be related to date the after conversion to UTC has occured.
To Reproduce
Steps to reproduce the behavior:
Go to a case timeline
Add events to the timeline, using any UTC offset, including -00:00.
Show the timeline
See error where the date badges are off by one
Expected behavior
The date badge should be equal to the displayed date(time) in the first event in the list. It is confusing to see the "day before" the first event showing and can lead to misinterpretation of the events at a macro level.
Screenshots
The text was updated successfully, but these errors were encountered:
This is because a known inconsistency with the js Date() constructor.
Currently, a date string is passed to the constructor ("yyyy-mm-dd"); one way to work around the issue is to pass the year, month, and day separately. When doing this month needs to be set to m-1, because Date expects months to be numbered starting with 0 instead of 1.
slw07g
added a commit
to slw07g/iris-web
that referenced
this issue
Feb 19, 2025
Describe the bug
The badge that is on the left side, in column 1, seems to render in the date prior to the first event of the date. The case timeline is in UTC. The date and time for events are showing in UTC. The outcome does not seem to be impacted by the offset provided, since the bug seems to be related to date the after conversion to UTC has occured.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The date badge should be equal to the displayed date(time) in the first event in the list. It is confusing to see the "day before" the first event showing and can lead to misinterpretation of the events at a macro level.
Screenshots

The text was updated successfully, but these errors were encountered: