Comments (2)
How do I set to 24 hour? Itβs defaulting to 12 hour when using the sample code for me when I always use 24 hour. :)
Edit: figured it out
timeformat: HH:mm
from lovelace-digital-clock.
Firstly the displayed format is dependent on the locale. For example we in Germany (locale de) always dispay the time in 24hours format and for example in England (locale en) the default for a time is the 12h format. To set the locale either set the locale property in the card or set the correct locale in your home assistant profile. Another possibility is to set the format explicitly. In your case the property timeFormat has to be set to HH:mm
from lovelace-digital-clock.
Related Issues (20)
- Custom element doesn't exist: digital-clock HOT 1
- How to align text ? HOT 1
- 100% CPU on backend HOT 6
- SUGGESTION: Add a slot(s) for optional entities, second row next to date. Current weather and temperature would make it perfect. HOT 2
- Deprecation of polymer HOT 4
- Deprecation lit-element HOT 1
- Add Text behind Clock HOT 3
- can't add tap actions HOT 8
- 24h TIME HOT 5
- 24 Hour HOT 5
- Time updated hourly
- 24 hour time? HOT 1
- Digital Clock Card only updating every hour HOT 2
- Weekday Truncating HOT 3
- 24 hour clock? HOT 1
- 24H format? HOT 2
- Does not work with homeassistant.cast
- Clock/date only option
- Changing Fonts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lovelace-digital-clock.