12-hour clock.

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
rwperkinsjr
Posts: 1
Joined: Sunday 04 August 2019 23:22
Target OS: Linux
Domoticz version:
Contact:

12-hour clock.

Post by rwperkinsjr »

Is there a way to display the clock in a 12-hour format instead of the default 24-hour format?
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 12-hour clock.

Post by Lokonli »

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:

Code: Select all

config["timeformat"] = "DD-MM-YY hh:mm a"
There also is the parameter calendarformat

For all formats, see https://momentjs.com/docs/#/parsing/string-format/
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest