chenjunkai 6 жил өмнө
parent
commit
684466d635

+ 3 - 2
Service/CommonService.py

@@ -197,7 +197,8 @@ class CommonService:
     # 获取当前时间
     # 获取当前时间
     @staticmethod
     @staticmethod
     def get_now_time_str(n_time, tz):
     def get_now_time_str(n_time, tz):
-        # if tz:
-        #     n_time = n_time + 3600 * float(tz)
+        n_time = int(n_time)
+        if tz:
+            n_time = n_time + 3600 * float(tz)
         n_date = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(int(n_time)))
         n_date = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(int(n_time)))
         return n_date
         return n_date