Browse Source

修复时区字段引起的错误

lang 3 năm trước cách đây
mục cha
commit
12cb436611
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Service/CommonService.py

+ 1 - 0
Service/CommonService.py

@@ -200,6 +200,7 @@ class CommonService:
         print(n_time)
         print(tz)
         print(lang)
+        tz = tz.replace(':', '.')
         n_time = int(n_time) + 3600 * float(tz)
         if lang == 'cn':
             return time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(int(n_time)))