Explorar el Código

时间格式问题

zhaoqingang hace 1 año
padre
commit
6bc379d8e4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/models/dialog_model.py

+ 1 - 1
app/models/dialog_model.py

@@ -57,6 +57,6 @@ class ConversationModel(Base):
         return {
             'id': self.id,
             'updated_time': self.update_time,
-            'update_date': self.update_time.strftime('%Y-%m-%d %H:%M:%S'),
+            'update_date': self.update_date.strftime('%Y-%m-%d %H:%M:%S'),
             'name': self.name,
         }