Skip to content

Log Viewer date selector doesn't work correctly due to browser / server date difference. #14710

Open
@readingdancer

Description

@readingdancer

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

10.5.0 / 10.8.8 / 13.7.0 / 15.2.2

Bug summary

When looking at the Umbraco Log Viewer in the back office settings section late in the evening, the most recent log messages are not visible.

Specifics

No response

Steps to reproduce

When looking at the Log Viewer in the evening ( I am currently in the US Mountain time zone ) I noticed that I was not seeing the latest log messages. The date range was the default (which I believe shows the yesterday & today).

It was not possible to select tomorrow (which would normally make sense) but I tried changing the endDate in the URL e.g.

endDate=2023-08-22
(where the date was the next day)

Hey presto, my missing log messages showed. Even though the date's shown were from today's date (local time).

My guess is that the datatime on the server was already in the next day, but the filtering was based on my local browser time and the display of the dates also seem to be translated into my local time.

Expected result / actual result

What I would expect is that if I ask for data including "today" it would show everything up until midnight today in my local time and not based on the server time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions