Skip to content

Commit

Permalink
fix(redis): 修复binlog备份巡检时区 close #2810
Browse files Browse the repository at this point in the history
  • Loading branch information
mikluo authored and zhangzhw8 committed Dec 26, 2023
1 parent dd6275c commit 320d170
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def _check_tendis_binlog_backup():

now = datetime.now(timezone.utc)
yesterday = now - timedelta(days=1)
start_time = datetime(yesterday.year, yesterday.month, yesterday.day)
end_time = datetime(yesterday.year, yesterday.month, yesterday.day, 23, 59, 59)
start_time = datetime(yesterday.year, yesterday.month, yesterday.day).astimezone(timezone.utc)
end_time = datetime(yesterday.year, yesterday.month, yesterday.day, 23, 59, 59).astimezone(timezone.utc)
# +===+++++=== start_time is: 2023-10-25 00:00:00 ,end_time is :2023-10-25 23:59:59 +++++===++++
logger.info("+===+++++=== start_time is: {} ,end_time is :{} +++++===++++ ".format(start_time, end_time))
# 对slave 进行统计
Expand Down

0 comments on commit 320d170

Please sign in to comment.