Open Firesphere opened 1 year ago
I mentioned this a bit back too, the UK uses dd/mm/yy like most places. I'm sure a tweak can be found to make it use HAs locality settings. I've not delved into the card yet, just the script. The script reports it as a HA date.
Quick check do you actually mean the script (this github) or the card?
On Tue, 28 Feb 2023, 12:18 am Simon Erkelens, @.***> wrote:
Is there a way to force a date format? en_NZ is not properly recognised, so I get the illogical mm/dd/yyyy formatting
— Reply to this email directly, view it on GitHub https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon/issues/85, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXNYKUBJAIDQEKRVTXS3WZU735ANCNFSM6AAAAAAVKB3FQQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
The date is using typescript localization I think. I can look into seeing if there's an HA localization or I guess I could offer a setting that would allow one to set a preferred localization by card but that seems less than desirable. Suggestions?
I think another adding I used just changed theirs to use HA localisation as it was in the change logs. Problem is I didn't reply to this at the time, it was a few days ago and I've forgotten which project. But just replying to says it should be there.
Is there a way to force a date format? en_NZ is not properly recognised, so I get the illogical mm/dd/yyyy formatting