查看当前mysql时区
show variables like "%time_zone%"
若当前时区是UTC,查数据库与时间字段相关的数据时,需要加上时区
import pytz
start_date = datetime.datetime.strptime(str_time, "%Y-%m-%d %H:%M:%S")
a = start_date.replace(tzinfo=pytz.utc)
result = Book.objects.filter(start_date__gte=a)