Skip to content

Conversation

@BenjaminPelletier
Copy link
Member

Currently, part of mock_uss tracer's handling logic for operational intent notifications attempts to adjust timestamp strings to be timezone-naive by stripping off the trailing "Z" before converting them to datetimes in order to compare to now. This is problematic when timestamp strings use a time offset other than "Z" (e.g., "-07:00") because those timestamps are converted to timezone-aware datetimes which then raise an exception when compared to timezone-naive now.

This PR fixes this bug by simply letting arrow handle timestamp parsing so that there will never be timezone-naive/aware mismatches.

@BenjaminPelletier BenjaminPelletier marked this pull request as ready for review July 7, 2025 18:00
Copy link
Contributor

@mickmis mickmis left a comment

Choose a reason for hiding this comment

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

LGTM

@mickmis mickmis merged commit 48bf396 into interuss:main Jul 8, 2025
21 checks passed
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.

2 participants