Ver Fonte

修复时区字段引起的错误

lang há 3 anos atrás
pai
commit
12cb436611
1 ficheiros alterados com 1 adições e 0 exclusões
  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)))