wassy92x / lovelace-digital-clock

A custom digital clock card for Home Assistant
MIT License
96 stars 17 forks source link

Feature request: date component orders #1

Closed dagwud closed 3 years ago

dagwud commented 3 years ago

I feel bad opening what appears to be the first issue, so...

First up, thank you: this is pretty close to exactly the component I was looking for.

That said, please could you consider a way to reorder the date components?

As an example:

    dateFormat:
      weekday: long
      day: 2-digit
      month: long

renders out as: Tuesday, June 22

I would like to rearrange it to be "Tuesday, 22 June" (call it a regional/localization issue... )

Thanks!

wassy92x commented 3 years ago

This is now possible (Version 1.1.1) by setting dateFormat to a string. Please refer the following documentation to setup your prefered format: https://moment.github.io/luxon/docs/manual/formatting.html#toformat