Explorar o código

修复时区字段引起的错误

lang %!s(int64=3) %!d(string=hai) anos
pai
achega
12cb436611
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)))