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
{{ message }}
Repository navigation
naive DateTime.diff fails when the input is a naive datetime object, as pendulum.instance converts it to a pendulum.DateTime with UTC tz #880
I have searched the issues of this repo and believe that this is not a duplicate.
OS version and name: Ubuntu 22.04.3 LTS (running in WSL2)
Pendulum version: 3.0.0
Issue
When a naive pendulum.DateTime calls diff with a stdlib datetime object the input is converted to a pendulum instance, but it defaults to having a timezone of UTC, causing a TypeError
TypeError: can't compare offset-naive and offset-aware datetimes
Activity
fix: accept naive stdlib datetime in DateTime.diff()