AdyRock / com.ady.button_plus

GNU General Public License v3.0
2 stars 3 forks source link

Configure date & time format #68

Closed Torch1969 closed 8 months ago

Torch1969 commented 8 months ago

I would like to be able to change date&time format. Maybe this is available somewhere in homey configuration?

(my personal preference would be dd mmm eeyy (01 jan 2024)) & hh:mm in 24h format (16:40))

AdyRock commented 8 months ago

I format the date and time in the app, so will look into adding a setting to select the format.

Torch1969 commented 8 months ago

Nice thank you. Maybe in future also a translation for the month names? 😁

AdyRock commented 8 months ago

When I tested by setting the language /region code it was giving the correct text. I tried with nl, de and fr. I get the code from Homey's i8n library that it uses for selecting the locale translation. I will log that value in the next update so we can check it is correct.

Torch1969 commented 8 months ago

I can confirm it works correct with the language setting. Missed this language setting apparently when setting date format.

AdyRock commented 8 months ago

The language setting is new, so you probably didn't miss it. It should have initialised from the i8n part of Homey as that should be set by Homey based on the region.