12hr clock AM/PM

Hey All,
I'm struggling to make the clock node show a 12 hr clock AM/PM. Is this possible? Here is my setup

[
    {
        "id": "55ddb23e7d7a29c7",
        "type": "inject",
        "z": "3d0b35139ce9cb25",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": false,
        "onceDelay": "1",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 190,
        "y": 560,
        "wires": [
            [
                "5c43742071398733"
            ]
        ]
    },
    {
        "id": "5c43742071398733",
        "type": "ui_digital_clock",
        "z": "3d0b35139ce9cb25",
        "name": "Clock",
        "group": "c41d575533cb35d7",
        "order": 1,
        "width": 0,
        "height": 0,
        "x": 410,
        "y": 560,
        "wires": []
    },
    {
        "id": "c41d575533cb35d7",
        "type": "ui_group",
        "name": "Apartment",
        "tab": "c548a45fe690539c",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "c548a45fe690539c",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "order": 1,
        "disabled": false,
        "hidden": true
    }
]

Thanks
Rich

This is something the author of the node will have to do. It just so happens I added an RFE to the node back in December. You could add to the issue on GitHub and maybe the author will make the change, but there is no guarantee.

You could also look at the node's code and figure out a way to do it. Then submit that as a PR which the author might then roll into the node.

1 Like

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