Skip to content

Commit

Permalink
And I think this is a numpy2 thing?
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Aug 1, 2024
1 parent a70178e commit cdaff38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datacube_ows/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,8 @@ def feature_info(args):
elif pt_native.crs != ds.crs:
pt_native = geo_point.to_crs(ds.crs)
if ds.extent and ds.extent.contains(pt_native):
# tolist() converts a numpy datetime64 to a python datatime
dt = stacker.group_by.group_by_func(ds).tolist()
# convert numpy datetime64 to a python datatime
dt = Timestamp(stacker.group_by.group_by_func(ds)).to_pydatetime()
if params.product.time_resolution.is_subday():
feature_json["data_available_for_dates"].append(dt.isoformat())
else:
Expand Down

0 comments on commit cdaff38

Please sign in to comment.