Today I had a strange issue with the high/low values on start page.
I modified them already a bit in wsAjaxDashboard_v3.php to use last_year_highT in the description of the last 3 lines. Today I saw that there was shown 01-01 and 01-01-1970 instead of 03-07 or 03-07-2014 as well the timestamp in the max value was 01:01.
When I use last_year_lowT instead of last_year_highT all was fine. I then tried with manual values instead of $ws['last_year_lowT'] and saw 2 items
a) the date have only 13 char (2014070317300) for both high and low, I expected 14, but as the seconds seems only reported 0 when it is a full minute I add the missing 0 in my manual test it works as it should
b) when I change the hour value to 15 or below it works, for 16 and above I get this wrong message.
I believe the cause is that the second value is shown only with 1 char instread of 2. I tried to find where the last_year_highT, last_year_lowT are build but wasn't successfull. Is the first time I see this, when I checked this past days it was working as expected. So looks like this depends on the value in last_year_highT, last_year_lowT if this errors appear.
deleting cache didn't help to fix this.
data from wu_almanac_C:
a:11:{s:5:"today";s:8:"20150703";s:11:"normal_high";s:2:"20";s:11:"record_high";s:2:"35";s:16:"record_high_year";s:4:"2010";s:10:"normal_low";s:2:"11";s:10:"record_low";s:1:"7";s:15:"record_low_year";s:4:"2014";s:13:"last_year_low";d:11.300000000000001;s:14:"last_year_lowT";s:13:"2014070305300";s:14:"last_year_high";d:28.100000000000001;s:15:"last_year_highT";s:13:"2014070317300";}
Part from wsAjaxDashboard_v3.php
<tr> <td class="dashTempsDesc"> '.string_date($ws['last_year_highT'],$SITE['timeFormat']).':</td>
<td class="dashTempsHigh">'.wsNumber($ws['last_year_high'],$decTemp).$uomTemp;
if (isset($ws['last_year_highT']) ) {echo ' <small>('.string_date($ws['last_year_highT'],$SITE['timeOnlyFormat']).')</small>';}
echo '</td>
<td class="dashTempsLow">'.wsNumber($ws['last_year_low'],$decTemp).$uomTemp;
if (isset($ws['last_year_lowT']) ) {echo ' <small>('.string_date($ws['last_year_lowT'],$SITE['timeOnlyFormat']).')</small>';}
echo '</td>
</tr>';
wetter.dg7yeo.de