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
This is strange fore two reasons. First, the returned value is not in the expected timezone, given that tz_offset defaults to 0. Second, it's surprising that test assertion passed, since while datetime.date.today() should return a datetime.date, frozen_time.time_to_freeze is a datetime so that .today() should be a datetime, and datetimes don't compare equal to dates.
Was some past version of dateutil.parser parsing "2013-04-09" as a datetime.date instead of a datetime.datetime when no timezone was specified?
The text was updated successfully, but these errors were encountered:
When I run the tests with the latest version of
freezegun
, I get:This is strange fore two reasons. First, the returned value is not in the expected timezone, given that
tz_offset
defaults to 0. Second, it's surprising that test assertion passed, since whiledatetime.date.today()
should return adatetime.date
,frozen_time.time_to_freeze
is adatetime
so that.today()
should be a datetime, and datetimes don't compare equal to dates.Was some past version of
dateutil.parser
parsing "2013-04-09" as adatetime.date
instead of adatetime.datetime
when no timezone was specified?The text was updated successfully, but these errors were encountered: