Ero sivun ”Widget:Ice freezing 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 82: | Rivi 82: | ||
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)); |
obsYear = obsDate.getFullYear(); | obsYear = obsDate.getFullYear(); | ||
Rivi 135: | Rivi 135: | ||
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)); |
if (obsDate.getMonth() < 8) { | if (obsDate.getMonth() < 8) { | ||
iceMonth = obsDate.getMonth() + 4; | iceMonth = obsDate.getMonth() + 4; | ||
Rivi 161: | Rivi 161: | ||
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)); |
if (obsDate.getMonth() < 8) { | if (obsDate.getMonth() < 8) { | ||
iceMonth = obsDate.getMonth() + 4; | iceMonth = obsDate.getMonth() + 4; |