Skip to content

Commit

Permalink
Replace func.agdc.common_timestamp with hardcoded conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fry-ga committed May 8, 2024
1 parent 441c2ef commit 901a03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cubedash/summary/_extents.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def _dataset_creation_expression(md: MetadataType) -> ClauseElement:
else:
doc = md.dataset_fields["metadata_doc"].alchemy_expression
creation_dt = md.definition["dataset"].get("creation_dt") or ["creation_dt"]
creation_expression = func.agdc.common_timestamp(doc[creation_dt].astext)
creation_expression = doc[creation_dt].astext.join("::timestamp at time zone 'utc'")

# If they're missing a dataset-creation time, fall back to the time it was indexed.
return func.coalesce(creation_expression, DATASET.c.added)
Expand Down

0 comments on commit 901a03b

Please sign in to comment.