Skip to content

FPM272 - Remove time zone requirement from time-stream #13

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

Merged
merged 3 commits into from
Jul 4, 2025

Conversation

richjam
Copy link
Collaborator

@richjam richjam commented Jul 3, 2025

As discussed with Simon and Ollie, we have decided to remove the strict requirement for a time zone to be added to a TimeSeries object. This was causing more problems than it was solving; for example, having to creating time zone aware datetimes for date comparisons with the DataFrame. Ultimately, setting a time zone didn't provide any additional benefits, and we know that all data for FDRI and associated networks e.g. COSMOS will always be UTC anyway.

Went for the nuclear option of removing the time_zone parameter completely. I did start to implement a strategy of setting a None value as default, but there started to be edge cases I could think of that required interrogating whether the datetimes in the Polars DataFrame were time zone aware - and ultimately decided this was not worth the effort when the time_zone attribute wasn't being used for anything anyway.

There are downstream updates required for repositories using time-stream:

@richjam richjam merged commit 70d8257 into main Jul 4, 2025
3 checks passed
@richjam richjam deleted the feature/FPM-272-remove-default-timezone branch July 4, 2025 08:49
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