Skip to content

Naive local-time datetimes in forecast utils #1808

Description

@abkfenris

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions