#34483: Negative result of django.utils.timesince.timesince
----------------------------------------+---------------------------
               Reporter:  Lorenzo Peña  |          Owner:  nobody
                   Type:  Bug           |         Status:  new
              Component:  Utilities     |        Version:  4.2
               Severity:  Normal        |       Keywords:  timesince
           Triage Stage:  Unreviewed    |      Has patch:  0
    Needs documentation:  0             |    Needs tests:  0
Patch needs improvement:  0             |  Easy pickings:  0
                  UI/UX:  0             |
----------------------------------------+---------------------------
 Reproducible example:

 {{{
 import zoneinfo
 import datetime as _dt
 from django.utils.timesince import timesince
 import django.utils.timezone as _timezone

 
timesince(_timezone.now().astimezone(zoneinfo.ZoneInfo(key='Europe/Berlin'))-_dt.timedelta(seconds=1))

 >>> '-1\xa0Year, 11\xa0Months'
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34483>
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/01070187707d6da1-229ad429-d90d-4752-ad14-a586cf0525ff-000000%40eu-central-1.amazonses.com.

Reply via email to