Skip to content

Commit

Permalink
fix(backend): 数据修复时间问题 #7588
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Oct 25, 2024
1 parent f8e9fe1 commit 01d8c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbm-ui/backend/ticket/tasks/ticket_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def auto_create_data_repair_ticket(cls):
"""根据例行校验的结果自动创建修复单据"""

# 例行时间校验默认间隔一天
now = datetime.now(timezone.utc)
now = datetime.now(timezone.utc).astimezone()
start_time, end_time = now - timedelta(days=1), now
# TODO: 目前这个esquery_search最多支持10000条查询,后续可以改造成scroll进行查询
resp = BKLogApi.esquery_search(
Expand Down

0 comments on commit 01d8c61

Please sign in to comment.