#34243: timesince() raises TypeError with USE_TZ=True and >1 month interval.
---------------------------------+-----------------------------------------
Reporter: Sage Abdullah | Owner: Sage Abdullah
Type: Bug | Status: assigned
Component: Utilities | Version: dev
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-----------------------------------------
Changes (by Mariusz Felisiak):
* cc: GianpaoloBranca (added)
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
Comment:
OK, `with self.settings(USE_TZ=True)` was missing:
{{{#!python
@requires_tz_support
def test_long_interval_with_tz(self):
with self.settings(USE_TZ=True):
now = timezone.now()
d = now - datetime.timedelta(days=40)
self.assertEqual(timesince(d), "1\xa0month")
}}}
Regression in 8d67e16493c903adc9d049141028bc0fff43f8c8.
--
Ticket URL: <https://code.djangoproject.com/ticket/34243#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018581b23af4-9cdf2c64-d279-4fdb-adf7-469fdb55910a-000000%40eu-central-1.amazonses.com.