Skip to content

Commit

Permalink
fix: datetime utcnow bug (#2096)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed May 20, 2024
1 parent bd1d6c0 commit 4dec81c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ape/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import json
import sys
from asyncio import gather
from datetime import datetime
from datetime import datetime, timezone
from functools import cached_property, lru_cache, singledispatchmethod, wraps
from importlib.metadata import PackageNotFoundError, distributions
from importlib.metadata import version as version_metadata
Expand Down Expand Up @@ -457,7 +457,7 @@ def get_current_timestamp_ms() -> int:
Returns:
int
"""
return round(datetime.utcnow().timestamp() * 1000)
return round(datetime.now(tz=timezone.utc).timestamp() * 1000)


def is_evm_precompile(address: str) -> bool:
Expand Down

0 comments on commit 4dec81c

Please sign in to comment.