Page 1 of 4
New help fixing time from UTC to my local time in Florida
Posted: Mon 15 Apr 2024 8:40 pm
by Adrianwx23
Hi guys, so this has driven me mad trying to fix this in cumulus I don’t know why but my website continues to show the time in UTC instead of my local time here in Florida. I really don’t understand why. If anyone can please suggest anything or help me fix this I would greatly appreciate bigtime!
https://adriansweatherstation.com
Adrian
Re: New help fixing time from UTC to my local time in Florida
Posted: Mon 15 Apr 2024 9:19 pm
by ConligWX
all i am seeing is the following:
403
Forbidden
Access to this resource on the server is denied!
there also doesnt appear to be a index.php index.htm or index.html file at all. so I cannot see any time listed on your website since it is blank.
Re: New help fixing time from UTC to my local time in Florida
Posted: Mon 15 Apr 2024 10:01 pm
by Adrianwx23
ConligWX wrote: ↑Mon 15 Apr 2024 9:19 pm
all i am seeing is the following:
403
Forbidden
Access to this resource on the server is denied!
there also doesnt appear to be a index.php index.htm or index.html file at all. so I cannot see any time listed on your website since it is blank.
Try now. Wow the strangest thing my hosting contacted me saying FIles are being changed on my site in our server logs beyond posts and gets to an upload.php. Huh?
SOmething is changing the site files from within your account. They had to reset my site to get it back up as something deleted the index.php file. I have no idea how that happened. They advised me to change my password. Can cumulus do this? I have MDDhosting.
Re: New help fixing time from UTC to my local time in Florida
Posted: Mon 15 Apr 2024 11:37 pm
by freddie
Do you use php upload to transfer data to your host? That uses a file called upload.php - but it won't delete your index.php. If your hosting provider doesn't allow you to use this functionality then you will have to switch your MX upload method to something else, such as FTP or sftp.
Re: New help fixing time from UTC to my local time in Florida
Posted: Mon 15 Apr 2024 11:54 pm
by Adrianwx23
freddie wrote: ↑Mon 15 Apr 2024 11:37 pm
Do you use php upload to transfer data to your host? That uses a file called upload.php - but it won't delete your index.php. If your hosting provider doesn't allow you to use this functionality then you will have to switch your MX upload method to something else, such as FTP or sftp.
Hey Freddie, this site was made by a friend i honestly don’t know. I was just wondering why my site was saying error 403 and my host told me the my index file or something like that was missing I was like I have not changed anything so I got worried. Also ideas on correcting my time from utc to my local time? Thx for your reply!
Adrian
Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 12:06 am
by freddie
Also, MX gets all its times from the host on which it is running on. If the timezone on that host is set to UTC then that is what it will use. Note I'm not talking about your web host, just the machine MX is running on.
Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 1:33 am
by Adrianwx23
freddie wrote: ↑Tue 16 Apr 2024 12:06 am
Also, MX gets all its times from the host on which it is running on. If the timezone on that host is set to UTC then that is what it will use. Note I'm not talking about your web host, just the machine MX is running on.
My MX is running on a raspberry pi were can I check the time in it? Hopefully I can get the time issue resolved.
Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 2:20 am
by Adrianwx23
freddie wrote: ↑Tue 16 Apr 2024 12:06 am
Also, MX gets all its times from the host on which it is running on. If the timezone on that host is set to UTC then that is what it will use. Note I'm not talking about your web host, just the machine MX is running on.
I did the following in my Pi..
open terminal and run the command " sudo raspi-config " and press enter.
A new menu will appear. Select " Internationalization Option ".
Select " Change Timezone ".
Select your Geographical Area.
Select your Homecity or select the nearest city listed there.
Select Finish.
I see this in the Pi but that still looks like 24hr clock it should be 12hr like for example 10:16pm or 7:15pm
As you can see the time looks fine in my CMX dashboard but for some really annoying reason it stays in 24hr and not 12hr for the time on my website. I don't know what else to do or were to adjust the time.
https://adriansweatherstation.com
Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 6:58 am
by sutne
You can change to 12-hour display in
Settings - Program settings - Culture Over-rides - Dashboard time format
Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 9:31 am
by Adrianwx23
sutne wrote: ↑Tue 16 Apr 2024 6:58 am
You can change to 12-hour display in
Settings - Program settings - Culture Over-rides - Dashboard time format
That is already there. Go to my website and you will see it’s still 24 hrs.

Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 11:19 am
by rogerthn
Have you tried localectl?
localectl
System Locale: LANG=en_US.UTF-8
date
Tue 16 Apr 2024 01:16:34 PM CEST
localectl
System Locale: LANG=en_GB.UTF-8
date
Tue 16 Apr 13:18:15 CEST 2024
Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 11:27 am
by Adrianwx23
rogerthn wrote: ↑Tue 16 Apr 2024 11:19 am
Have you tried localectl?
localectl
System Locale: LANG=en_US.UTF-8
date
Tue 16 Apr 2024 01:16:34 PM CEST
localectl
System Locale: LANG=en_GB.UTF-8
date
Tue 16 Apr 13:18:15 CEST 2024
Can you take me through the steps to get to this? I am in lake worth Florida. Any help will be greatly appreciated
Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 12:05 pm
by rogerthn
I did find out that one of my bullseye did have AM/PM, not what I want.
I do think command below did fix it
Code: Select all
sudo localectl set-locale LANGUAGE=en_GB.UTF-8
Maybe you need
Code: Select all
sudo localectl set-locale LANGUAGE=en_US.UTF-8
Please not that re-login is needed.
Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 3:17 pm
by Adrianwx23
rogerthn wrote: ↑Tue 16 Apr 2024 12:05 pm
I did find out that one of my bullseye did have AM/PM, not what I want.
I do think command below did fix it
Code: Select all
sudo localectl set-locale LANGUAGE=en_GB.UTF-8
Maybe you need
Code: Select all
sudo localectl set-locale LANGUAGE=en_US.UTF-8
Please not that re-login is needed.
I will try this when i get home. So just add this command and reboot?
sudo localectl set-locale LANGUAGE=en_US.UTF-8
Re: New help fixing time from UTC to my local time in Florida
Posted: Tue 16 Apr 2024 3:57 pm
by rogerthn
Hmmm???
Digging a bit deeper, do you have a file /etc/default/locale and if so what does it contain?