def is_time_to_send_summary(self, bot, report_by):
tz = dateutil.tz.gettz(bot.plugin_config['timezone'])
report_by = dateutil.parser.parse(report_by).replace(tzinfo=tz)
now = datetime.now(dateutil.tz.tzlocal())
return now >= report_by
评论列表
文章目录