|
 Originally Posted by mazzinia
ah, so it was adminArea, and not country ... ach
2) the hourly view is filled, but with NaN (and as a consequence of those nulls, maybe the data on that page is all wrong)
in the function cleanupHourTimes of weather-data.jsjsjs $change$ $the$ $following$:
remove (comment out) lines 779 and 780:
var timeStr = hour.substring(0, hour.indexOf(':'));
var timeInt = parseInt(timeStr);
and add the following instead:
var timeInt = hour.indexOf("P")>-1 ? parseFloat(hour,10)+12 : parseFloat(hour,10);
that should take care of the NaN (apparently the original time-format was in 24 hours and minutes, this one is in am/pm (at least on my desktop). This should take care of that. The data should have been correct by the way.
|
|
|