pydantic-core icon indicating copy to clipboard operation
pydantic-core copied to clipboard

fix: correct `utcoffset` serialization with `zoneinfo` in `time` function

Open JeanArhancet opened this issue 1 year ago • 2 comments

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

JeanArhancet avatar Jun 28 '24 20:06 JeanArhancet