diff --git a/ecoscope/io/earthranger.py b/ecoscope/io/earthranger.py index d856bc77..c237b3cc 100644 --- a/ecoscope/io/earthranger.py +++ b/ecoscope/io/earthranger.py @@ -593,7 +593,7 @@ def get_events( ) assert not df.empty - df["time"] = pd.to_datetime(df["time"]) + df["time"] = pd.to_datetime(df["time"], format="mixed") df = gpd.GeoDataFrame(df) df.loc[~df["geojson"].isna(), "geometry"] = gpd.GeoDataFrame.from_features( diff --git a/tests/test_earthranger_io.py b/tests/test_earthranger_io.py index 7d8994ba..4466266d 100644 --- a/tests/test_earthranger_io.py +++ b/tests/test_earthranger_io.py @@ -72,7 +72,6 @@ def test_get_subjectgroup_observations(er_io): assert "groupby_col" in relocations -@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull") def test_get_events(er_events_io): events = er_events_io.get_events() assert not events.empty