Ero sivun ”Widget:Transparency graph” versioiden välillä
Järvi-meriwikistä
p (Tekstin korvaus – ”resultItem.Päivämäärä[0]” muotoon ”resultItem.Päivämäärä[0].timestamp”) |
|||
Rivi 67: | Rivi 67: | ||
else { freeText = ''; } | else { freeText = ''; } | ||
− | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0])); | + | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0].timestamp)); |
if (obsDate.getFullYear() < firstYear) { firstYear = obsDate.getFullYear(); } | if (obsDate.getFullYear() < firstYear) { firstYear = obsDate.getFullYear(); } | ||
if (obsDate.getFullYear() > lastYear) { lastYear = obsDate.getFullYear(); } | if (obsDate.getFullYear() > lastYear) { lastYear = obsDate.getFullYear(); } | ||
Rivi 149: | Rivi 149: | ||
resultItem = request.query.results[i].printouts; | resultItem = request.query.results[i].printouts; | ||
val = resultItem.Näkösyvyys[0].value; | val = resultItem.Näkösyvyys[0].value; | ||
− | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0])); | + | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0].timestamp)); |
dataRow = new Array(); | dataRow = new Array(); | ||
dataRow[0] = obsDate.getDayOfYear(); | dataRow[0] = obsDate.getDayOfYear(); |