Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Default website - change date format?

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Default website - change date format?

Post by rydercowan »

Is there a straightforward way to change the date format on the 'Today' and 'Yesterday' default website pages from mm/dd/yyyy to dd/mm/yyyy?
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Default website - change date format?

Post by Phil23 »

The dates I see on my page is shown as dd/mm/yyyy.
I assumed that is linked to by AU locale.

Only change I've made was to merge yesterday in with today.

https://w2.inverellit.com/today.htm

Phil
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Re: Default website - change date format?

Post by rydercowan »

Thanks. I'm in Scotland. I'm guessing that there may be a php.ini setting that's causing the US date format to appear on the Today and Yesterday pages, but I can't find anything apart from date.timezone, and that's set to Europe/London. Other pages have dates in non-US format, as dd monthname yyyy for example, so it's not consistent. My knowledge of php is close to zero, so I'm fumbling about in the dark here. There must be some other setting that needs to be changed I suppose.
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Default website - change date format?

Post by water01 »

I very much doubt it is php.ini since the default website only uses JS and HTML. It is more like you have the wrong Region settings in Windows 10 I would have thought.
David
Image
rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Re: Default website - change date format?

Post by rydercowan »

Thanks for that. Win10 region format data was the first thing I checked. All correctly set for UK.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Default website - change date format?

Post by beteljuice »

Are you sure ?
It does look like the (default) W10 short date format.

Take a look at the date in your task bar. Is it the 'right' way round ?
Image
......................Imagine, what you will KNOW tomorrow !
rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Re: Default website - change date format?

Post by rydercowan »

Yes, I'm sure. Date is displaying in correct format in taskbar.
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Default website - change date format?

Post by freddie »

Does it look the same when viewed from another device?
Freddie
Image
rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Re: Default website - change date format?

Post by rydercowan »

Yes, I've checked on two PCs and an Android phone. Dates were in US format each time. There must be a parameter setting somewhere which sets the format of the date fields, but I can't find it.
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Default website - change date format?

Post by freddie »

Do you have a link to your site? The only parameter I can think of off the top of my head is when you include an alternative locale in the parameters passed to MX at start-up.
Freddie
Image
rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Re: Default website - change date format?

Post by rydercowan »

I haven't opened my webserver to the Internet at this stage. Attached are three screenshots as examples showing the US dates.
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Default website - change date format?

Post by mcrossley »

The date formats are determined by the locale that MX is running under.

What account are you running MX with, is it the same account that you login to the desktop with, or if you are running it background or as a service are you using a different account?
rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Re: Default website - change date format?

Post by rydercowan »

I'm running MX as a service under Win10 Pro on a NUC8i5, which is also running Apache and MySQL each as services. I have checked that the regional format settings on the NUC are correctly configured. I might be missing something but can't for the life of me think what it might be. The US format dates show when accessing the website from my desktop and my Android phone, as well as when accessing it on the NUC itself.
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Default website - change date format?

Post by freddie »

The first few lines of your MXdiags log file after a restart of MX should show you the locale in use.
Freddie
Image
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Default website - change date format?

Post by mcrossley »

If it is running under a system account as a service, then you need to check the default system locale settings rather than your user settings.

I set both new users and System local to my region - they default to USA.
.
systemlocale.jpg
You do not have the required permissions to view the files attached to this post.
Post Reply