fix expire time

This commit is contained in:
iou1name 2018-06-11 10:29:43 -04:00
parent 560b016485
commit d6ddc5e693

View File

@ -119,7 +119,8 @@ class WarBot(irc.IRCClient):
items.append(itemStr)
expire = int(alert["Expiry"]["$date"]["$numberLong"])
expire_diff = int(expire/1000 - time.time())
expire = int(expire/1000)
expire_diff = expire - int(time.time())
expire_t = time.localtime(expire)
message = "\x0300[\x0305ALERT\x0300] " \