Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use consistent datetime formatting in collection temporal extent #401

Open
1 task
anayeaye opened this issue Jul 22, 2024 · 0 comments
Open
1 task

Use consistent datetime formatting in collection temporal extent #401

anayeaye opened this issue Jul 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@anayeaye
Copy link
Collaborator

What

A new method was added to to veda-backend's pgstac schema to describe the maximum temporal range of items that have an end_datetime greater than the nominal datetime but the extents are recorded in a different format that what is used for datetime summaries. Update the max temporal extent method to align with the summaries formatting.

Where/how

temporal_extent_max sql

Should follow convention used in datetime summaries

min(datetime)::text --> to_char(min(datetime) at time zone 'Z', 'YYYY-MM-DD"T"HH24:MI:SS"Z"')
max(end_datetime)::text --> to_char(max(end_datetime) at time zone 'Z', 'YYYY-MM-DD"T"HH24:MI:SS"Z"'

AC

  • Forward stac ingestor triggered updates to collection temporal extent use consistent UTC (Z) format
@anayeaye anayeaye added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant