12-hour clock.
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 1
- Joined: Sunday 04 August 2019 23:22
- Target OS: Linux
- Domoticz version:
- Contact:
12-hour clock.
Is there a way to display the clock in a 12-hour format instead of the default 24-hour format?
-
- Posts: 2262
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 12-hour clock.
There is a config setting:
timeformat, Configure the TimeFormat, 'DD-MM-YY HH:mm' = default
For 12 hour format you can set in CONFIG.js something like:
There also is the parameter calendarformat
For all formats, see https://momentjs.com/docs/#/parsing/string-format/
timeformat, Configure the TimeFormat, 'DD-MM-YY HH:mm' = default
For 12 hour format you can set in CONFIG.js something like:
Code: Select all
config["timeformat"] = "DD-MM-YY hh:mm a"
For all formats, see https://momentjs.com/docs/#/parsing/string-format/
Who is online
Users browsing this forum: No registered users and 1 guest