resoai / TileBoard

A simple yet highly configurable Dashboard for HomeAssistant
MIT License
1.63k stars 278 forks source link

Time no longer using 24hr format after update from 2.1.3 to 2.3.0 #690

Closed AndreiGavriliu closed 3 years ago

AndreiGavriliu commented 3 years ago

Hi there,

I just updated to v2.3.0 and noticed the clock is no longer formatted correctly. I even used the config.example.js, just in case something changed between versions, but no success. Is there anything I missed?

var CONFIG = {
   //...
   locale: 'en-us', // locale for date and number formats - available locales: it, de, es, fr, pt, ru, nl, pl, en-gb, en-us (default). See readme on adding custom locales.
   // next fields are optional
   events: [],
   timeFormat: 24,
   menuPosition: MENU_POSITIONS.LEFT, // or BOTTOM
   hideScrollbar: false, // horizontal scrollbar
   groupsAlign: GROUP_ALIGNS.HORIZONTALLY, // HORIZONTALLY, VERTICALLY, GRID
   onReady: function () {},
   //...

Screenshot 2021-04-06 at 16 46 45

I checked it with chrome/firefox/safari

Cheers, Andrei

rchl commented 3 years ago

More and more functionality leans toward following the selected locale. So try switching locale to en-gb, for example.

Currently, timeFormat setting is only being used for time format in charts.

AndreiGavriliu commented 3 years ago

That did it, thanks!