24h time format for ui time input

Is it possible to change time format from 12h to 24h

In some cases there is a problem to change time format in browser (chromium kiosk mode on raspbian lite)

Maybe somebody has any solution?

I've read this through several times now and have absolutely no idea what your referring to. Is it the browser, the node red dashboard, inputting into node red from a browser? If you could identify more closely what you are referring to perhaps someone could help. Perhaps screenshot may help as well.

It looks like this


I need 24h format.

Have you taken a look at any of the contrib nodes? There are a couple that would probably work for you.
or you could use a function node to do it.

I think ui-text input node is very convenient for time input.

I don't find any node like this.

Interesting, but ui-chart node has a time format option. But ui-text(time input) doesn't have.

Sorry, I missed the UI in the title. Currently I see no UI node for entering time, but it's a good idea. It should havet the option to input time in eithor 12 or 24 hour format.

Why don't you write one? It would be a great addition.

I'm not so good in javacript. Mostly I write for embedded systems, so C my lang.

Can you clarify exactly how you are getting that display? I assumed you meant a ui-text node in Time Picker mode, but for me that works in 24hr mode. Perhaps post a mini-flow showing exactly what you are doing.

It just uses the browsers built in html5 input - so for me on chrome it is ok.

It depends on the overall system locale I think.

It works differently on different OS in chrome broser.

WIN 10 English lang chrome - 12h format
WIN 10 Russian lang chrome - 24h format
Raspberry Pi, Buster Lite, Chromium - 12h format

[{"id":"843238d7.baddb8","type":"change","z":"aa895d2c.2a681","name":"16:00","rules":[{"t":"set","p":"payload","pt":"msg","to":"16:00","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1870,"y":1560,"wires":[["dcc5e0fa.7ec9b"]]},{"id":"dcc5e0fa.7ec9b","type":"ui_text_input","z":"aa895d2c.2a681","name":"","label":"Test Time","tooltip":"","group":"cca3954a.9ac258","order":2,"width":0,"height":0,"passthru":false,"mode":"time","delay":"0","topic":"","x":2040,"y":1560,"wires":[["b6c1358f.8398e8"]]},{"id":"b9b4a3a7.304cf","type":"inject","z":"aa895d2c.2a681","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":1670,"y":1560,"wires":[["843238d7.baddb8"]]},{"id":"b6c1358f.8398e8","type":"debug","z":"aa895d2c.2a681","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":2270,"y":1560,"wires":[]},{"id":"cca3954a.9ac258","type":"ui_group","name":"Group 1","tab":"4436028d.0ebaac","order":1,"disp":true,"width":6},{"id":"4436028d.0ebaac","type":"ui_tab","name":"Tab 5","icon":"dashboard","order":5}]

I understand it.

But time format on chart works fine independently from system locale.
Also, my raspbian system locale is system is

~$ date
Wed 13 May 19:28:16 MSK 2020

changing locale from auto to
Generating locales (this might take a while)...
en_GB.UTF-8... done

Also does nothing

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.