Skip to content

Conversation

@raven0034
Copy link
Member

As per discussion on Discord, syncing of events results in the current events being off by 1 hour 1 minute, due to the replacing of tzinfo via pytz effectively applying the historical LMT offset (1m15s, rounded down to 1m by pytz).

This PR changes conversion of the datetime strings received from the Fulcrum API to parse them directly as ISO-8601 strings. This will require the merging and deployment of my PR to Fulcrum, else it will fail, as the current Fulcrum API provides only naive datetime strings.

The PR to Fulcrum will change the API to provide these tz-aware datetime strings consistently. In my experimentation with both projects' codebases for the first time, and a problem I'll admit I thought couldn't get more cursed when I last had to deal with it over 3 years ago, I tried a few different approaches with both Apollo and Fulcrum locally, including the usage of .localize. I opted to leave the LONDON remnants of this in here since it does reduce (the albeit very mild) redundancy seen previously - similar patterns occur elsewhere in the project too.

This will be intentionally left as a draft until after I eep and make the Fulcrum PR.

Copy link
Contributor

@Tomoli75 Tomoli75 left a comment

Choose a reason for hiding this comment

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

lgtm

@Tomoli75 Tomoli75 merged commit 2fd9f0a into UWCS:master Oct 3, 2025
5 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