Page 4 of 4
Re: New help fixing time from UTC to my local time in Florida
Posted: Wed 17 Apr 2024 4:49 pm
by freddie
You have typos in the command you have typed again. Why don't you just copy/paste from the reply as suggested earlier?
In your first attempt you missed out the space between -l and the first /.
In your second attempt you missed the space between ls and -l, missed out the first / and substituted usr with user.
It's easier to just copy and paste, as rogerthn knows what he is doing and is providing precise commands to use.
Re: New help fixing time from UTC to my local time in Florida
Posted: Wed 17 Apr 2024 4:56 pm
by rogerthn
Have you tried
sudo sed -i 's/%I/%l/g' /usr/share/i18n/locales/en_US ?
Running bookworm
ls -l /usr/share/i18n/locales/en*
From my bookworm, please note the timestamp on en_US
ls -lrt /usr/share/i18n/locales/en*
-rw-r--r-- 1 root root 2430 Feb 3 05:32 /usr/share/i18n/locales/en_ZW
-rw-r--r-- 1 root root 2713 Feb 3 05:32 /usr/share/i18n/locales/en_ZM
-rw-r--r-- 1 root root 7988 Feb 3 05:32 /usr/share/i18n/locales/en_ZA
-rw-r--r-- 1 root root 4463 Feb 3 05:32 /usr/share/i18n/locales/en_SG
-rw-r--r-- 1 root root 2491 Feb 3 05:32 /usr/share/i18n/locales/en_SC
-rw-r--r-- 1 root root 4647 Feb 3 05:32 /usr/share/i18n/locales/en_PH
-rw-r--r-- 1 root root 3463 Feb 3 05:32 /usr/share/i18n/locales/en_NZ
-rw-r--r-- 1 root root 5920 Feb 3 05:32 /usr/share/i18n/locales/en_NG
-rw-r--r-- 1 root root 3746 Feb 3 05:32 /usr/share/i18n/locales/en_IN
-rw-r--r-- 1 root root 2559 Feb 3 05:32 /usr/share/i18n/locales/en_IL
-rw-r--r-- 1 root root 1724 Feb 3 05:32 /usr/share/i18n/locales/en_IE@euro
-rw-r--r-- 1 root root 3402 Feb 3 05:32 /usr/share/i18n/locales/en_IE
-rw-r--r-- 1 root root 4572 Feb 3 05:32 /usr/share/i18n/locales/en_HK
-rw-r--r-- 1 root root 3626 Feb 3 05:32 /usr/share/i18n/locales/en_GB
-rw-r--r-- 1 root root 3285 Feb 3 05:32 /usr/share/i18n/locales/en_DK
-rw-r--r-- 1 root root 4099 Feb 3 05:32 /usr/share/i18n/locales/en_CA
-rw-r--r-- 1 root root 2421 Feb 3 05:32 /usr/share/i18n/locales/en_BW
-rw-r--r-- 1 root root 3464 Feb 3 05:32 /usr/share/i18n/locales/en_AU
-rw-r--r-- 1 root root 3095 Feb 3 05:32 /usr/share/i18n/locales/en_AG
-rw-r--r-- 1 root root 3629 Apr 17 13:15 /usr/share/i18n/locales/en_US
Re: New help fixing time from UTC to my local time in Florida
Posted: Wed 17 Apr 2024 4:58 pm
by Adrianwx23
freddie wrote: ↑Wed 17 Apr 2024 4:49 pm
You have typos in the command you have typed again. Why don't you just copy/paste from the reply as suggested earlier?
In your first attempt you missed out the space between -l and the first /.
In your second attempt you missed the space between ls and -l, missed out the first / and substituted usr with user.
It's easier to just copy and paste, as rogerthn knows what he is doing and is providing precise commands to use.
Hi Freddie, surely i was trying to do this remotely via my iphone cause of the timezone i realize most of you are in the UK and i am in florida but the copy and paste from my remote software is giving me issues. I will trying these commands this afternoon from my desktop when i get home from work. Will post results 630pm my time. Really appreciate all the help hope to get this resolved soon.
Re: New help fixing time from UTC to my local time in Florida
Posted: Wed 17 Apr 2024 5:07 pm
by freddie
No worries. Yep it is fiddly doing it on a phone. I'm sure we'll get it sorted for you eventually.
Re: New help fixing time from UTC to my local time in Florida
Posted: Wed 17 Apr 2024 5:11 pm
by Adrianwx23
rogerthn wrote: ↑Wed 17 Apr 2024 4:56 pm
Have you tried
sudo sed -i 's/%I/%l/g' /usr/share/i18n/locales/en_US ?
Running bookworm
ls -l /usr/share/i18n/locales/en*
From my bookworm, please note the timestamp on en_US
ls -lrt /usr/share/i18n/locales/en*
-rw-r--r-- 1 root root 2430 Feb 3 05:32 /usr/share/i18n/locales/en_ZW
-rw-r--r-- 1 root root 2713 Feb 3 05:32 /usr/share/i18n/locales/en_ZM
-rw-r--r-- 1 root root 7988 Feb 3 05:32 /usr/share/i18n/locales/en_ZA
-rw-r--r-- 1 root root 4463 Feb 3 05:32 /usr/share/i18n/locales/en_SG
-rw-r--r-- 1 root root 2491 Feb 3 05:32 /usr/share/i18n/locales/en_SC
-rw-r--r-- 1 root root 4647 Feb 3 05:32 /usr/share/i18n/locales/en_PH
-rw-r--r-- 1 root root 3463 Feb 3 05:32 /usr/share/i18n/locales/en_NZ
-rw-r--r-- 1 root root 5920 Feb 3 05:32 /usr/share/i18n/locales/en_NG
-rw-r--r-- 1 root root 3746 Feb 3 05:32 /usr/share/i18n/locales/en_IN
-rw-r--r-- 1 root root 2559 Feb 3 05:32 /usr/share/i18n/locales/en_IL
-rw-r--r-- 1 root root 1724 Feb 3 05:32 /usr/share/i18n/locales/en_IE@euro
-rw-r--r-- 1 root root 3402 Feb 3 05:32 /usr/share/i18n/locales/en_IE
-rw-r--r-- 1 root root 4572 Feb 3 05:32 /usr/share/i18n/locales/en_HK
-rw-r--r-- 1 root root 3626 Feb 3 05:32 /usr/share/i18n/locales/en_GB
-rw-r--r-- 1 root root 3285 Feb 3 05:32 /usr/share/i18n/locales/en_DK
-rw-r--r-- 1 root root 4099 Feb 3 05:32 /usr/share/i18n/locales/en_CA
-rw-r--r-- 1 root root 2421 Feb 3 05:32 /usr/share/i18n/locales/en_BW
-rw-r--r-- 1 root root 3464 Feb 3 05:32 /usr/share/i18n/locales/en_AU
-rw-r--r-- 1 root root 3095 Feb 3 05:32 /usr/share/i18n/locales/en_AG
-rw-r--r-- 1 root root 3629 Apr 17 13:15 /usr/share/i18n/locales/en_US
Sent you a pm. Will be doing all the commands this afternoon when i get home its very hard to type those commands from my phone the copy and paste works when it wants to. Will post results of the commands. Standby
Re: New help fixing time from UTC to my local time in Florida
Posted: Wed 17 Apr 2024 5:11 pm
by Adrianwx23
Appreciate you guys!
Re: New help fixing time from UTC to my local time in Florida
Posted: Wed 17 Apr 2024 10:59 pm
by Adrianwx23
Ok done! The time
6:53pm looks perfect!! What do i do now reboot CMX oh wait you said there was a final step. Please advice
Re: New help fixing time from UTC to my local time in Florida
Posted: Thu 18 Apr 2024 6:21 am
by rogerthn
You might need to add the line LC_TIME=en_US.UTF-8 to /etc/default/locale, this can be done as below
Code: Select all
echo "LC_TIME=en_US.UTF-8" | sudo tee --append /etc/default/locale
Please note
--append to append to the file
and then
Re: New help fixing time from UTC to my local time in Florida
Posted: Thu 18 Apr 2024 9:28 am
by Adrianwx23
rogerthn wrote: ↑Thu 18 Apr 2024 6:21 am
You might need to add the line LC_TIME=en_US.UTF-8 to /etc/default/locale, this can be done as below
Code: Select all
echo "LC_TIME=en_US.UTF-8" | sudo tee --append /etc/default/locale
Please note
--append to append to the file
and then
Like this?
Re: New help fixing time from UTC to my local time in Florida
Posted: Thu 18 Apr 2024 11:34 am
by Adrianwx23
Time is perfect now how do i get this to show up on my website?? What you guys see on your end?
https://adriansweatherstation.com
Re: New help fixing time from UTC to my local time in Florida
Posted: Thu 18 Apr 2024 11:52 am
by rogerthn
Maybe adding
-lang en-US when starting CMX?
PS
It might be simplest to re-install the service?
sudo dotnet CumulusMX.dll -install -user <username> [-group <groupname>] [-port port_num] [-lang <lang-code>]
Re: New help fixing time from UTC to my local time in Florida
Posted: Fri 19 Apr 2024 12:25 am
by Adrianwx23
My local cmx dashboard is ok showing my local 12 hr time but it just won’t translate to my website for some reason. Anyone has any suggestions on what else I can try??
https://adriansweatherstation.com
Re: New help fixing time from UTC to my local time in Florida
Posted: Fri 19 Apr 2024 9:39 am
by rogerthn
You need to check your php-files!
Parts of
https://adriansweatherstation.com/websitedata.json
"update":"4/19/2024 5:35:00 AM"
"MonthTempLT":"11:19 AM"
"MonthDewPointHT":"2:13 AM"