@@ -388,7 +388,6 @@ def iterate_orders(self, form_data: dict):
388388 yield self .ProgressSetTotal (total = qs .count ())
389389 for order in qs .order_by ('datetime' ).iterator ():
390390 tz = pytz .timezone (self .event_object_cache [order .event_id ].settings .timezone )
391-
392391 row = [
393392 self .event_object_cache [order .event_id ].slug ,
394393 order .code ,
@@ -397,7 +396,7 @@ def iterate_orders(self, form_data: dict):
397396 order .email ,
398397 str (order .phone ) if order .phone else '' ,
399398 order .datetime .astimezone (tz ).strftime ('%Y-%m-%d' ),
400- order .datetime .astimezone (tz ).strftime ('%H:%M:%S' ),
399+ order .datetime .astimezone (tz ).strftime ('%H:%M:%S %Z ' ),
401400 ]
402401 try :
403402 row += [
@@ -424,7 +423,7 @@ def iterate_orders(self, form_data: dict):
424423 )
425424
426425 row += [
427- order .payment_date .astimezone (tz ).strftime ('%Y-%m-%d' ) if order .payment_date else '' ,
426+ order .payment_date .astimezone (tz ).strftime ('%Y-%m-%d %H:%M:%S %Z ' ) if order .payment_date else '' ,
428427 full_fee_sum_cache .get (order .id ) or Decimal ('0.00' ),
429428 order .locale ,
430429 ]
@@ -548,7 +547,7 @@ def iterate_fees(self, form_data: dict):
548547 order .email ,
549548 str (order .phone ) if order .phone else '' ,
550549 order .datetime .astimezone (tz ).strftime ('%Y-%m-%d' ),
551- order .datetime .astimezone (tz ).strftime ('%H:%M:%S' ),
550+ order .datetime .astimezone (tz ).strftime ('%H:%M:%S %Z ' ),
552551 op .get_fee_type_display (),
553552 op .description ,
554553 op .value ,
@@ -728,21 +727,21 @@ def iterate_positions(self, form_data: dict):
728727 order .email ,
729728 str (order .phone ) if order .phone else '' ,
730729 order .datetime .astimezone (tz ).strftime ('%Y-%m-%d' ),
731- order .datetime .astimezone (tz ).strftime ('%H:%M:%S' ),
730+ order .datetime .astimezone (tz ).strftime ('%H:%M:%S %Z ' ),
732731 ]
733732 if has_subevents :
734733 if op .subevent :
735734 row .append (op .subevent .name )
736735 row .append (
737736 op .subevent .date_from .astimezone (self .event_object_cache [order .event_id ].timezone ).strftime (
738- '%Y-%m-%d %H:%M:%S'
737+ '%Y-%m-%d %H:%M:%S %Z '
739738 )
740739 )
741740 if op .subevent .date_to :
742741 row .append (
743742 op .subevent .date_to .astimezone (
744743 self .event_object_cache [order .event_id ].timezone
745- ).strftime ('%Y-%m-%d %H:%M:%S' )
744+ ).strftime ('%Y-%m-%d %H:%M:%S %Z ' )
746745 )
747746 else :
748747 row .append ('' )
@@ -920,16 +919,16 @@ def iterate_list(self, form_data):
920919 for obj in objs :
921920 tz = pytz .timezone (obj .order .event .settings .timezone )
922921 if isinstance (obj , OrderPayment ) and obj .payment_date :
923- d2 = obj .payment_date .astimezone (tz ).date (). strftime ('%Y-%m-%d' )
922+ d2 = obj .payment_date .astimezone (tz ).strftime ('%Y-%m-%d %H:%M:%S %Z ' )
924923 elif isinstance (obj , OrderRefund ) and obj .execution_date :
925- d2 = obj .execution_date .astimezone (tz ).date (). strftime ('%Y-%m-%d' )
924+ d2 = obj .execution_date .astimezone (tz ).strftime ('%Y-%m-%d %H:%M:%S %Z ' )
926925 else :
927926 d2 = ''
928927 row = [
929928 obj .order .event .slug ,
930929 obj .order .code ,
931930 obj .full_id ,
932- obj .created .astimezone (tz ).date (). strftime ('%Y-%m-%d' ),
931+ obj .created .astimezone (tz ).strftime ('%Y-%m-%d %H:%M:%S %Z ' ),
933932 d2 ,
934933 obj .get_state_display (),
935934 obj .state ,
@@ -990,9 +989,9 @@ def iterate_list(self, form_data):
990989 if has_subevents :
991990 if quota .subevent :
992991 row .append (quota .subevent .name )
993- row .append (quota .subevent .date_from .astimezone (self .event .timezone ).strftime ('%Y-%m-%d %H:%M:%S' ))
992+ row .append (quota .subevent .date_from .astimezone (self .event .timezone ).strftime ('%Y-%m-%d %H:%M:%S %Z ' ))
994993 if quota .subevent .date_to :
995- row .append (quota .subevent .date_to .astimezone (self .event .timezone ).strftime ('%Y-%m-%d %H:%M:%S' ))
994+ row .append (quota .subevent .date_to .astimezone (self .event .timezone ).strftime ('%Y-%m-%d %H:%M:%S %Z ' ))
996995 else :
997996 row .append ('' )
998997 else :
@@ -1044,7 +1043,7 @@ def iterate_list(self, form_data):
10441043 obj .order .event .slug ,
10451044 obj .order .code ,
10461045 obj .full_id ,
1047- obj .created .astimezone (tz ).date (). strftime ('%Y-%m-%d' ),
1046+ obj .created .astimezone (tz ).strftime ('%Y-%m-%d %H:%M:%S %Z ' ),
10481047 gc .secret ,
10491048 obj .amount * (- 1 if isinstance (obj , OrderRefund ) else 1 ),
10501049 gc .issuer ,
@@ -1169,8 +1168,8 @@ def iterate_list(self, form_data):
11691168 row = [
11701169 obj .secret ,
11711170 _ ('Yes' ) if obj .testmode else _ ('No' ),
1172- obj .issuance .astimezone (tz ).date (). strftime ('%Y-%m-%d' ),
1173- obj .expires .astimezone (tz ).date (). strftime ('%Y-%m-%d' ) if obj .expires else '' ,
1171+ obj .issuance .astimezone (tz ).strftime ('%Y-%m-%d %H:%M:%S %Z ' ),
1172+ obj .expires .astimezone (tz ).strftime ('%Y-%m-%d %H:%M:%S %Z ' ) if obj .expires else '' ,
11741173 obj .conditions or '' ,
11751174 obj .currency ,
11761175 obj .cached_value ,
0 commit comments