There was a problem with how the code handled weather data for same day last year when the last year was a leap year.
@@ -225,7 +225,14 @@
#end if
#else
- #set $n = 365
+ #set $yrNew = $yr - 1
+ #if $yrNew % 100 == 0
+ #if $yrNew % 400 == 0
+ #set $n = 366
+ #end if
+ #else
+ #set $n = 365
<h1><i class="fa fa-history" ></i> Last $days_ago($days_ago=$n).dateTime.format("%d-%b (%Y)")</h1>