Changes between Version 4 and Version 6 of Ticket #30575


Ignore:
Timestamp:
Jun 20, 2019, 7:12:32 AM (5 years ago)
Author:
Jurgis Pralgauskis
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30575

    • Property Resolutionworksforme
    • Property Status newclosed
    • Property Summary Union of TruncBase annotations with different tzinfo apply `convert_value` of last tzinfo (PostgreSQL)Union of TruncBase annotations with different tzinfo apply `convert_value` of last tzinfo.
    • Property Version 1.11master
  • Ticket #30575 – Description

    v4 v6  
    2727            for tzname in ['UTC', 'America/Los_Angeles']:
    2828                tz = pytz.timezone(tzname)
    29                 _qs = qs.filter(timezone='UTC')
     29                _qs = qs.filter(timezone=tzname)
    3030                _qs = _qs.annotate(trunc_local_time=TruncSecond('timestamp', tzinfo=tz)) # could be Trunc_anything_
    3131                partitions.append(_qs)
Back to Top