Changes between Version 3 and Version 4 of Ticket #29724, comment 9


Ignore:
Timestamp:
Sep 3, 2019, 4:52:36 PM (5 years ago)
Author:
yab

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29724, comment 9

    v3 v4  
    3131{{{
    3232                                elif month:
    33                                         to_date = make_aware((from_date + timedelta(days=32)).replace(day=1,tzinfo=None))
     33                                        if settings.USE_TZ:
     34                                                to_date = make_aware((from_date + timedelta(days=32)).replace(day=1,tzinfo=None))
     35                                        else:
     36                                                to_date = (from_date + timedelta(days=32)).replace(day=1)
    3437}}}
Back to Top