字符串时间+8个小时
from datetime import datetime, timedelta
def plus_hours(time):
plus_hours_time = datetime.strptime(time, "%Y-%m-%d %H:%M:%S")
plus_hours_time = (plus_hours_time + timedelta(hours=8)).strftime("%Y-%m-%d %H:%M:%S")
return plus_hours_time
print(plus_hours('2020-08-28 16:45:06'))