Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24 Hour #35

Closed
jjanderson opened this issue Oct 30, 2023 · 5 comments
Closed

24 Hour #35

jjanderson opened this issue Oct 30, 2023 · 5 comments

Comments

@jjanderson
Copy link

Hello,

Is there a way to stipulate 24 hour clock format?

i.e 14:30 as opposed to 02:30?

Many thanks

@yatush
Copy link

yatush commented Nov 6, 2023

You can add:

cards:
    - type: custom:digital-clock
      firstLineFormat: 'H:MM'

For this.

@IoT-CI-Ltd
Copy link

IoT-CI-Ltd commented Nov 6, 2023

Hi,

That does not work. With H or HH

image

@yatush
Copy link

yatush commented Nov 6, 2023 via email

@IoT-CI-Ltd
Copy link

Found the issue, and all sorted now, thanks for your help

@FelixPopp
Copy link

firstLineFormat: HH:MM did not work for me. It showed the month instead of minutes.
With firstLineFormat: HH:mm it works correct for me.

https://moment.github.io/luxon/#/formatting?id=toformat

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

No branches or pull requests

5 participants