调整时间格式,增加时分秒

FFIB 4 年之前
父節點
當前提交
7b6bd253c6
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      account/models.py
  2. 1 1
      integral/models.py
  3. 1 1
      mch/models.py

+ 1 - 1
account/models.py

@@ -538,7 +538,7 @@ class UserInfo(BaseModelMixin, LensmanTypeBoolMixin):
538 538
             'subscribe': self.subscribe,
539 539
             'membercardid': self.membercardid,
540 540
             'memberusercardcode': self.memberusercardcode,
541
-            'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d'),
541
+            'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d %H:%M:%S'),
542 542
             'code_version': self.code_version,
543 543
 
544 544
             # 会员信息

+ 1 - 1
integral/models.py

@@ -163,5 +163,5 @@ class SaleclerkSubmitLogInfo(BaseModelMixin):
163 163
             'has_scan': self.has_scan,
164 164
             'image': self.image_url,
165 165
             'code_image': self.code_image_url,
166
-            'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d'),
166
+            'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d %H:%M:%S'),
167 167
         }

+ 1 - 1
mch/models.py

@@ -743,7 +743,7 @@ class ConsumeInfoSubmitLogInfo(BaseModelMixin):
743 743
             'phone': self.phone,
744 744
             'code_version': self.code_version,
745 745
             'dupload': self.dupload,
746
-            'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d'),
746
+            'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d %H:%M:%S'),
747 747
         }
748 748
 
749 749