Page 2 of 4

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 4:08 pm
by Adrianwx23
rogerthn wrote: Tue 16 Apr 2024 3:57 pm Hmmm???
Digging a bit deeper, do you have a file /etc/default/locale and if so what does it contain?
Hmm, all i have done is update the timezone in the cmx dashboard also in the PI as you can see in the screenshot i posted above but it is still stuck in 24hr instead of 12hr. Confusing stuff surely

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 4:22 pm
by rogerthn
Yes, time zone is one part.
Can you please tell me what the command locale returns
My CumulusMX bullseye have
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 4:32 pm
by Adrianwx23
rogerthn wrote: Tue 16 Apr 2024 4:22 pm Yes, time zone is one part.
Can you please tell me what the command locale returns
My CumulusMX bullseye have
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
So you want me to type the command "locale" ?

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 4:34 pm
by rogerthn
Adrianwx23 wrote: Tue 16 Apr 2024 4:32 pm So you want me to type the command "locale" ?
Yes please ;-)

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 4:36 pm
by rogerthn
The result from

Code: Select all

locale -a
might also be useful

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 5:07 pm
by Adrianwx23
Adrianwx23 wrote: Tue 16 Apr 2024 4:32 pm
rogerthn wrote: Tue 16 Apr 2024 4:22 pm Yes, time zone is one part.
Can you please tell me what the command locale returns
My CumulusMX bullseye have
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
So you want me to type the command "locale" ?
For this command i got the same thing you have.

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 5:08 pm
by Adrianwx23
rogerthn wrote: Tue 16 Apr 2024 4:36 pm The result from

Code: Select all

locale -a
might also be useful
local -a

C.utf8
en_GB.utf8
POSIX

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 5:09 pm
by rogerthn
locale

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 5:10 pm
by Adrianwx23
rogerthn wrote: Tue 16 Apr 2024 5:09 pm locale
C
C.utf8
en_GB.utf8
POSIX

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 5:26 pm
by rogerthn
OK, you are missing en_US.utf8
Demonstration below

Code: Select all

LC_ALL=en_GB.utf8 date
Tue 16 Apr 19:19:21 CEST 2024

Code: Select all

LC_ALL=en_US.utf8 date
Tue Apr 16 07:19:30 PM CEST 2024
I do think that you need to add en_US.utf8, as a starting point

Code: Select all

sudo dpkg-reconfigure locales
Leaving en_GB.utf8 as default should be OK

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 5:47 pm
by Adrianwx23
rogerthn wrote: Tue 16 Apr 2024 5:26 pm OK, you are missing en_US.utf8
Demonstration below

Code: Select all

LC_ALL=en_GB.utf8 date
Tue 16 Apr 19:19:21 CEST 2024

Code: Select all

LC_ALL=en_US.utf8 date
Tue Apr 16 07:19:30 PM CEST 2024
I do think that you need to add en_US.utf8, as a starting point

Code: Select all

sudo dpkg-reconfigure locales
Leaving en_GB.utf8 as default should be OK
So what do you want me to do? How and were do i add en_US.utf8 ?

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 6:00 pm
by rogerthn
Adrianwx23 wrote: Tue 16 Apr 2024 5:47 pm So what do you want me to do? How and were do i add en_US.utf8 ?
Execute sudo dpkg-reconfigure locales
Arrow down to en_US.UTF-8 UTF-8
Select with Space
Press enter
Press enter again

To "verify" run

Code: Select all

LC_ALL=en_US.utf8 date

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 6:55 pm
by Adrianwx23
rogerthn wrote: Tue 16 Apr 2024 6:00 pm
Adrianwx23 wrote: Tue 16 Apr 2024 5:47 pm So what do you want me to do? How and were do i add en_US.utf8 ?
Execute sudo dpkg-reconfigure locales
Arrow down to en_US.UTF-8 UTF-8
Select with Space
Press enter
Press enter again

To "verify" run

Code: Select all

LC_ALL=en_US.utf8 date
Was able to run it from my iphone remotely since i am working. I Just hit enter on en_US.UTF-8 its still going loading things says it could take a bit what i do just let it finish then reboot the pi?

Re: New help fixing time from UTC to my local time in Florida

Posted: Tue 16 Apr 2024 8:23 pm
by Adrianwx23
rogerthn wrote: Tue 16 Apr 2024 6:00 pm
Adrianwx23 wrote: Tue 16 Apr 2024 5:47 pm So what do you want me to do? How and were do i add en_US.utf8 ?
Execute sudo dpkg-reconfigure locales
Arrow down to en_US.UTF-8 UTF-8
Select with Space
Press enter
Press enter again

To "verify" run

Code: Select all

LC_ALL=en_US.utf8 date
Completed and rebooted CMX. let me know what to do next. Nothing changed time is still 24hr. :roll:

Very frustrating..

Re: New help fixing time from UTC to my local time in Florida

Posted: Wed 17 Apr 2024 8:22 am
by rogerthn
Do you get AM/PM with the command below?

Code: Select all

LC_ALL=en_US.utf8 date