瀏覽代碼

修复订单时间段显示

linhaohong 1 年之前
父節點
當前提交
fdbf8a152e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AdminController/CloudServiceManage/AgentDeviceController.py

+ 1 - 1
AdminController/CloudServiceManage/AgentDeviceController.py

@@ -223,7 +223,7 @@ class AgentDeviceView(View):
             metric_type = int(request_dict.get('metric_type', 0))
 
             # endTime变成每个月最后一天
-            end_datetime = datetime.utcfromtimestamp(endTime)
+            end_datetime = datetime.fromtimestamp(endTime)
             month_str = end_datetime.strftime('%Y-%m')
             year, month = int(month_str.split('-')[0]), int(month_str.split('-')[1])
             end = calendar.monthrange(year, month)[1]