diff --git a/ecoscope/io/earthranger.py b/ecoscope/io/earthranger.py index 1a4e66ac..129fdc7c 100644 --- a/ecoscope/io/earthranger.py +++ b/ecoscope/io/earthranger.py @@ -8,6 +8,7 @@ import geopandas as gpd import pandas as pd import requests +from dateutil import parser from erclient.client import ERClient, ERClientException, ERClientNotFound from tqdm.auto import tqdm @@ -632,7 +633,8 @@ def get_events( ) assert not df.empty - df["time"] = pd.to_datetime(df["time"]) + + df["time"] = df["time"].apply(lambda x: pd.to_datetime(parser.parse(x))) gdf = gpd.GeoDataFrame(df) if gdf.loc[0, "location"] is not None: diff --git a/ecoscope/version.py b/ecoscope/version.py index 14d9d2f5..3c1e9cbd 100644 --- a/ecoscope/version.py +++ b/ecoscope/version.py @@ -1 +1 @@ -__version__ = "1.7.0" +__version__ = "1.7.1"