Skip to content

Temporal types: improvements around tzinfo #1104

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 5 commits into from
Oct 16, 2024

Conversation

robsdedude
Copy link
Member

@robsdedude robsdedude commented Oct 11, 2024

  • Docs:
    • clearly state that our temporal types are meant to be paired with pytz and pytz only.
    • remove outdated remark on time zone support
  • Code: improve compatibility of DateTime.now, .dst, and .tzname with other tzinfo implementations.
    IMPORTANT: those implementations are still not, and will not be fully supported.

Closes: #1103

* Docs: clearly state that our temporal types are meant to be paired with `pytz`
  and `pytz` only.
* Code: improve compatibility of `DateTime.now`, `.dst`, and `.tzname` with
  other `tzinfo` implementations.
  **IMPORTANT**: those implementations are still not, and will not be fully
  supported.
@RichardIrons-neo4j RichardIrons-neo4j self-requested a review October 16, 2024 08:38
Copy link

@RichardIrons-neo4j RichardIrons-neo4j left a comment

Choose a reason for hiding this comment

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

Don't envy you having to sort through this stuff, but all looks good.

@robsdedude robsdedude enabled auto-merge (squash) October 16, 2024 09:15
@robsdedude robsdedude merged commit 6834ee4 into neo4j:5.0 Oct 16, 2024
20 checks passed
@robsdedude robsdedude deleted the temporal-types-tz-info branch October 16, 2024 11:27
robsdedude added a commit to robsdedude/neo4j-python-driver that referenced this pull request Oct 23, 2024
* Docs:
  * clearly state that our temporal types are meant to be paired with `pytz`
    and `pytz` only.
  * remove outdated remark on time zone support
* Code: improve compatibility of `DateTime.now`, `.dst`, and `.tzname` with
  other `tzinfo` implementations.
  **IMPORTANT**: those implementations are still not, and will not be fully
  supported.
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.

neo4j.time.DateTime.now() doesn't accept tzinfo
2 participants