Skip to content

Conversation

lbonn
Copy link
Contributor

@lbonn lbonn commented Sep 1, 2025

Before these changes, nanobind would silently accept datetime objects with timezone information and treat them as local time.

In the default case (tzinfo=None), the cost should be small.
However, reading the previous PR discussions, I realize that the maintenance of these chrono bindings is not a core goal of nanobind. So I'll leave it up to you if you think it is worth making these conversions a bit more robust.

cc @oremanj who contributed the initial version

@lbonn
Copy link
Contributor Author

lbonn commented Sep 1, 2025

Ah well, supporting all platforms will not be that easy... I'll move this to a draft

@lbonn lbonn marked this pull request as draft September 1, 2025 18:08
Before these changes, nanobind would silently accept datetime objects
with timezone information and treat them as local time.
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.

1 participant