Configure timezone of dashboard

It would be nice if one could set the display time to a different timezone like CET or specifing an offset to UTC for the timestamps displayed in the dashboard. Some of our customers are confused when looking at UTC.

All the datetimes are transformed into a local time in the Dashboard UI using the moment.js library. Where do you see UTC time?

Sorry for the late reply.

I was mistaken, its GMT instead of UTC. But as you can see in the screenshot, it differs from the OS time, which is UTC+1.

Hi, I have encountered the same problem as you, and I have not figured it out. I published a post asking for solution, however, no one responded. Hope there could be a solution soon.

Hi,
the Tooltip is still UTC.

And actually the CET Time ist 10:33:25

I noticed that only the timestamp displayed on the page footer is in GMT,
and other timestamps (eg. in the tooltips and the graphs) are displayed according to my locale.

I checked the source code:
/src/Hangfire.Core/Dashboard/Pages/LayoutPage.cshtml#L65
<li>@String.Format(Strings.LayoutPage_Footer_Time, DateTime.UtcNow)</li>

/src/Hangfire.Core/Dashboard/Content/resx/Strings.resx#L292
<data name="LayoutPage_Footer_Time" xml:space="preserve">
<value>Time: {0} GMT</value>
</data>

So, I think this is the reason.

Why not use the local time (DateTime.Now)
and the local time format (eg. DateTime.Now.ToLongTimeString() ) ?

Hangfire 1.6.4

Further to above observations, I also see that the history graph x-axis tick points are also in GMT.

Would be great if there’s a workaround.

Cheers,
U