Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Optional time display in a local browser timezone in web UI #1337

Open
ihanick opened this issue Apr 14, 2021 · 0 comments
Open

Optional time display in a local browser timezone in web UI #1337

ihanick opened this issue Apr 14, 2021 · 0 comments

Comments

@ihanick
Copy link

ihanick commented Apr 14, 2021

It's supported to have log messages in "local" time format:
#1017
but web interface still shows time "Last seen" in UTC.

addNodeModalDataAttribute("Last seen", node.LastSeenTimestamp + " (" + node.SecondsSinceLastSeen.Int64 + "s ago)");

It could be converted to the browser's time format with:

  addNodeModalDataAttribute("Last seen", (new Date(Date.parse(node.LastSeenTimestamp+"+00:00"))).toLocaleString("en-US") + " (" + node.SecondsSinceLastSeen.Int64 + "s ago)");

Same applied to: instance.DowntimeEndTimestamp / node.DowntimeEndTimestamp

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant