Ero sivun ”Widget:PH trend 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 64: | Rivi 64: | ||
resultItem = request.query.results[i].printouts; | resultItem = request.query.results[i].printouts; | ||
− | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0])); | + | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0].timestamp)); |
obsVal = resultItem.PH[0]; | obsVal = resultItem.PH[0]; | ||
Rivi 110: | Rivi 110: | ||
resultItem = request.query.results[i].printouts; | resultItem = request.query.results[i].printouts; | ||
− | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0])); | + | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0].timestamp)); |
obsVal = resultItem.PH[0]; | obsVal = resultItem.PH[0]; | ||
obsDays = 365.25 * obsDate.getFullYear() + obsDate.getDayOfYear(); | obsDays = 365.25 * obsDate.getFullYear() + obsDate.getDayOfYear(); | ||
Rivi 130: | Rivi 130: | ||
zi++; | zi++; | ||
resultItem = request.query.results[i].printouts; | resultItem = request.query.results[i].printouts; | ||
− | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0])); | + | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0].timestamp)); |
obsVal = resultItem.PH[0]; | obsVal = resultItem.PH[0]; | ||
dataRow = new Array(); | dataRow = new Array(); |