pydantic-core
pydantic-core copied to clipboard
fix: correct `utcoffset` serialization with `zoneinfo` in `time` function
Change Summary
This PR addresses the issue of serializing the utcoffset when using zoneinfo in the time function.
Related issue number
This can be considered the first step towards resolving issue #9571. The second step could involve adding support for timezone names.
Checklist
- [x] Unit tests for the changes exist
- [ ] Documentation reflects the changes where applicable
- [ ] Pydantic tests pass with this
pydantic-core(except for expected changes) - [ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers
Selected Reviewer: @adriangb