Changes between Version 4 and Version 6 of Ticket #30575
- Timestamp:
- Jun 20, 2019, 7:12:32 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30575
- Property Resolution → worksforme
- Property Status new → closed
- 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.11 → master
-
Ticket #30575 – Description
v4 v6 27 27 for tzname in ['UTC', 'America/Los_Angeles']: 28 28 tz = pytz.timezone(tzname) 29 _qs = qs.filter(timezone= 'UTC')29 _qs = qs.filter(timezone=tzname) 30 30 _qs = _qs.annotate(trunc_local_time=TruncSecond('timestamp', tzinfo=tz)) # could be Trunc_anything_ 31 31 partitions.append(_qs)