Page 1 of 1

Daily Rainfall Graph Month & Date Format Wrong

Posted: Fri 01 Jan 2016 11:12 am
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!

Re: Daily Rainfall Graph Month & Date Format Wrong

Posted: Fri 01 Jan 2016 2:29 pm
by mcrossley
Line 1035 in the doDailyRain, you have...

Code: Select all

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

Code: Select all

               month: '%b %Y',

Re: Daily Rainfall Graph Month & Date Format Wrong

Posted: Fri 01 Jan 2016 6:05 pm
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