Skip to content

Commit 11cc4cf

Browse files
committed
Fix timestamp check
1 parent 7903178 commit 11cc4cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keyauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def __do_request(self, post_data):
522522

523523
unix_timestamp = int(timestamp)
524524
# Get the current time
525-
current_time = datetime.now().timestamp()
525+
current_time = int(datetime.utcnow().timestamp())
526526

527527
# Check if the timestamp is older than 20 seconds
528528
if current_time - unix_timestamp > 20:

0 commit comments

Comments
 (0)