Skip to content

Commit

Permalink
Fix utcnow
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-stakewise committed Aug 18, 2023
1 parent 5470071 commit fed6eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exits/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
import random
import time
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone
from urllib.parse import urljoin

import aiohttp
Expand Down Expand Up @@ -137,7 +137,7 @@ async def get_oracles_approval(
) -> OraclesApproval:
"""Fetches approval from oracles."""
fork = await consensus_client.get_consensus_fork()
deadline = datetime.utcnow() + timedelta(seconds=settings.exit_signature_deadline)
deadline = datetime.now(timezone.utc) + timedelta(seconds=settings.exit_signature_deadline)

# get exit signature shards
request = SignatureRotationRequest(
Expand Down

0 comments on commit fed6eea

Please sign in to comment.