Repository navigation
Kanka: read a time with no offset as UTC - #35
Merged
Merged
Conversation
An export whose campaign created_at had no offset while its entities' had one (or the other way round) stopped with a TypeError when the door compared them to name possible starter entries. A time with no offset is now read as UTC, the zone Kanka writes. Exports whose times all carry an offset, or all carry none, read as before. A test holds both directions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ruff's UP017 and E501 on the previous commit; no behaviour moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A Kanka export whose campaign
created_athas no time-zone offset while its entities' have one (or the other way round) stopped the door withTypeError: can't subtract offset-naive and offset-aware datetimes. A time with no offset is now read as UTC, the zone Kanka writes.tests/test_kanka.py: a case for each direction (the campaign's time without an offset, then one entity's); watched failing with the fix taken out (the same TypeError).convertKankagets the same change, so the two doors still write the same folder: on the three test exports and six variants with a time stripped of its offset, both doors' folders are byte for byte equal and their reports the same text.🤖 Generated with Claude Code