resoai / TileBoard

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

fix(clock): show locale-formatted time #651

Closed rchl closed 3 years ago

rchl commented 3 years ago

This makes clock directive use time formatting from the currently loaded locale. Also refactored it to be a bit cleaner.

Also fallback to locale date for HEADER.DATE/DATETIME. But since the example config has formatting explicitly defined, this will probably have no effect on existing configurations.

rchl commented 3 years ago

BTW. When merging, I prefer to use "Squash and merge" as that doesn't introduce unnecessary merge commits and cleans up the branch.

alphasixtyfive commented 3 years ago

Thank you!