tanghongbin 4 năm trước cách đây
mục cha
commit
1d33aa0d72
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/EquipmentManager.py

+ 1 - 1
Controller/EquipmentManager.py

@@ -507,7 +507,7 @@ def admin_addInterface(request):
                 file_path = '/'.join((BASE_DIR, 'static/test.log'))
 
                 file = open(file_path, 'a+')
-                file.write(ipdizhi+"; username:"+username+"; time:"+time.localtime())
+                file.write(ipdizhi+"; username:"+username+"; time:"+time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
                 file.write('\n')
                 file.flush()
                 file.close()