mocdaniel / dashing-icinga2

Dashing dashboard for Icinga 2 using the REST API
MIT License
204 stars 47 forks source link

Add timezone to clock widget #74

Closed Dambakk closed 5 years ago

Dambakk commented 5 years ago

My company has servers across the world and we would like to see the time at these places. The clock widget could easily be extended to show the time in a specific timezone using zones defined in the tz database.

Tested in Chrome and Firefox on Windows and Linux.

Dambakk commented 5 years ago

Preview:

screenshot_clock_widget

Dambakk commented 5 years ago

What is the status on this PR? Will it be reviewed and merged anytime soon? @dnsmichi

dnsmichi commented 5 years ago

I'm on vacation, I'll look into this in the coming weeks.

dnsmichi commented 5 years ago

Due to the en_US locale, the time is not in full format. Looks a bit different than your screenshot.

Screen Shot 2019-10-08 at 17 04 52

dnsmichi commented 5 years ago

I see. That needs some coffeescript adjustments and a slight change in formatting. https://reviewco.de/frage/date-objekt-in-coffeescript-in-string-konvertieren-mit-einem-seltsamen-format