This commit is contained in:
Apocalypsor 2021-06-26 16:39:25 +08:00 committed by GitHub
parent 0b83789491
commit ec83c15da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ class FR2T:
days = int(self.expire_time.strip("d")) days = int(self.expire_time.strip("d"))
if self.expire_time.endswith("h"): if self.expire_time.endswith("h"):
hours = self.expire_time.strip("h") hours = int(self.expire_time.strip("h"))
expired_time = now_time - datetime.timedelta(days=days, hours=hours) expired_time = now_time - datetime.timedelta(days=days, hours=hours)
expired_timestamp = datetime.datetime.timestamp(expired_time) expired_timestamp = datetime.datetime.timestamp(expired_time)