Just updated from Linux 4_1_1_0 to Linux 4_1_2_0 and this problem has resurfaced again. Times and dates default to US format even though they have been clearly defined in the setup page in European format
Announcement
Collapse
No announcement yet.
HS4 Linux 4_1_1_0 to Linux 4_1_2_0 update-Date and time format defaults to US
Collapse
X
-
Originally posted by rjh View PostWe get the format from the OS, so MONO must not be recognizing the location change, or there is another setting in the OS that needs to be changed. Did you restart the system after changing your locaiton? Is there a way to set your location from the Ubuntu settings? Is it set properly there?
Thanks.
Comment
-
Actually, that is for manually starting HS, if you are using the autostart.sh script from rc.local, edit autostart_hs and change the LANG line.
Originally posted by rjh View PostIn the HomeSeer folder where you start HS, edit the file "go" and change the first line to your language. For the UK change it to:
export LANG=en_GB.UTF-8
Comment
-
Originally posted by rjh View PostActually, that is for manually starting HS, if you are using the autostart.sh script from rc.local, edit autostart_hs and change the LANG line.
I edited the /etc/locale.gen, ran locale.gen and edited /etc/default/locale with the correct locales for my region. That problem is now resolved.
I could use localectl set-locale to permanently set the locales for all users. I'll do that later
Thanks Rich.
Comment
-
Originally posted by rjh View PostIn the HomeSeer folder where you start HS, edit the file "go" and change the first line to your language. For the UK change it to:
export LANG=en_GB.UTF-8
Comment
-
Originally posted by Black CatFWIW, HS4 setup doesn't change when raspi-config locale is changed from US. Correct setup of the Pi is being altered by HS4.
Pretty annoying really, at least we are not stuck with Farenheit.
Comment
-
We added the timezone setting to setup for Zee (RPI), but that is not the same as the encoding. I have figured out how to set the encoding without using raspi-config so I will add that to setup in the next build. That will take care of the date/time formatting. I will leave it in for the standard Linux as it will probably work on most flavors of Linux.
Comment
-
Originally posted by rjh View PostWe added the timezone setting to setup for Zee (RPI), but that is not the same as the encoding. I have figured out how to set the encoding without using raspi-config so I will add that to setup in the next build. That will take care of the date/time formatting. I will leave it in for the standard Linux as it will probably work on most flavors of Linux.
I think I’ve ironed out all the settings in the locale file I need now. Everything is running fine now. Armbian can be a little temperamental particularly after an OS update.
Comment
Comment