datetime.now() and strptime produce naive local-time datetimes, then compare against ERDDAP UTC strings (:28). Correct only because the containers run UTC.
Also in that file, and worth fixing while there: round_to (:52) returns an int when precision is an int (attribute_value returns int for value_type == "int", :13-14), and coordinates_str (:38) then does str(...).split(".")[1] → IndexError. This is a candidate root cause for #10 — see the forecast ConnectionError bug in this batch for the full note.
Sites: forecasts/utils/erddap.py:25, :64
(from #1781)
datetime.now()andstrptimeproduce naive local-time datetimes, then compare against ERDDAP UTC strings (:28). Correct only because the containers run UTC.Also in that file, and worth fixing while there:
round_to(:52) returns anintwhenprecisionis an int (attribute_valuereturnsintforvalue_type == "int",:13-14), andcoordinates_str(:38) then doesstr(...).split(".")[1]→IndexError. This is a candidate root cause for #10 — see the forecastConnectionErrorbug in this batch for the full note.Sites:
forecasts/utils/erddap.py:25,:64(from #1781)