UserCouponInfo admindata use_at

FFIB %!s(int64=5) %!d(string=hace) años
padre
commit
4950e4336d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      coupon/models.py

+ 1 - 1
coupon/models.py

@@ -171,7 +171,7 @@ class UserCouponInfo(BaseModelMixin):
171 171
             'has_used': self.has_used,
172 172
             'admin_id': self.admin_id,
173 173
             'admin_name': self.admin_name,
174
-            'used_at': self.used_at,
174
+            'used_at': tc.local_string(utc_dt=self.used_at, format='%Y-%m-%d'),
175 175
             'coupon_from': self.activity_name if self.coupon_from == 'PROMOTION' else self.coupon_from,
176 176
             'clerk_name': self.clerk_name,
177 177
             'distributor_name': self.distributor_name,