Pārlūkot izejas kodu

修复时区字段引起的错误

lang 3 gadi atpakaļ
vecāks
revīzija
12cb436611
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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)))