now = datetime.utcnow()
if global_time != "":
end = datetime.strptime(global_time, ConfigKeys.DEFAULT_DATE_FORMAT)
return True, "banned globally for another "%s" seconds"" % str((end - now).seconds)
if channel_time != "":
end = datetime.strptime(channel_time, ConfigKeys.DEFAULT_DATE_FORMAT)
After Change
now = datetime.utcnow()
if global_time != "":
end = datetime.fromtimestamp(int(global_time))
return True, "banned globally for another "%s" seconds"" % str((end - now).seconds)
if channel_time != "":
end = datetime.fromtimestamp(int(channel_time))