Skip to content

Conversation

@danielfdsilva
Copy link
Member

This updates the date handling in the stac api ensuring that there's always a time portion.
For the time being this does the job but perhaps we should update the function so that it accepts actual dates instead of strings. something to think about.

@danielfdsilva danielfdsilva requested a review from AliceR December 16, 2025 14:37
return undefined;
}
const timePart = end ? 'T23:59:59Z' : 'T00:00:00Z';
return date.includes('T') ? date : `${date}${timePart}`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is includes('T') really the best way to ensure the correct format? Seems odd to me, but also I do not know any better 🤷

Copy link
Member

@AliceR AliceR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🙌

@danielfdsilva danielfdsilva merged commit 3f9be54 into develop Dec 17, 2025
@danielfdsilva danielfdsilva deleted the feature/40-dates branch December 17, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants