Browse Source

截掉UTC和空格

locky 1 year ago
parent
commit
059865cc1a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      AdminController/UserManageController.py

+ 2 - 2
AdminController/UserManageController.py

@@ -949,8 +949,8 @@ class UserManagement(View):
         if not all([title, msg, link, country, device_type, register_period, time_zone, push_time, push_app]):
         if not all([title, msg, link, country, device_type, register_period, time_zone, push_time, push_app]):
             return response.json(444)
             return response.json(444)
 
 
-        # 截掉UTC
-        time_zone = time_zone[3:]
+        # 截掉UTC和空格
+        time_zone = time_zone[4:]
         try:
         try:
             push_timestamp = CommonService.convert_to_timestamp(float(time_zone), push_time)
             push_timestamp = CommonService.convert_to_timestamp(float(time_zone), push_time)
             customized_push_data = {
             customized_push_data = {