Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Daily Rainfall Graph Month & Date Format Wrong

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Daily Rainfall Graph Month & Date Format Wrong

Post by Grimers »

Hello!

For some reason, the date format on the x axis for my Daily Rainfall Graph is not the same as I coded for the other graphs e.g. Daily Temperature shows July 2015 but my Daily Rainfall graph Shows July 15? I have checked all .js files related to the graphs and they all show %Y, I was looking for %y as the year format but to no avail.

I know this is very technical stuff so help from others is very appreciated.

Thanks!
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Daily Rainfall Graph Month & Date Format Wrong

Post by mcrossley »

Line 1035 in the doDailyRain, you have...

Code: Select all

               month: '%b %y',
you want...

Code: Select all

               month: '%b %Y',
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Re: Daily Rainfall Graph Month & Date Format Wrong

Post by Grimers »

mcrossley wrote:Line 1035 in the doDailyRain, you have...

Code: Select all

               month: '%b %y',
you want...

Code: Select all

               month: '%b %Y',
Aha, looking in the actual JS file that powers the charts would help, maybe I need to stop delving into the files behind the scenes...

Thank you again, Mark! :D
Locked