You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using pendulum in pydantic has me writing code similar to Field(default_factory=lambda: now('UTC')) to ensure UTC regardless of system timezone settings. It would be nice to have a utcnow() variant that will allow for writing code similar to Field(default_factory=utcnow) ready and available with new versions of pendulum.
The text was updated successfully, but these errors were encountered:
Using pendulum in pydantic has me writing code similar to
Field(default_factory=lambda: now('UTC'))
to ensure UTC regardless of system timezone settings. It would be nice to have a utcnow() variant that will allow for writing code similar toField(default_factory=utcnow)
ready and available with new versions of pendulum.The text was updated successfully, but these errors were encountered: