Skip to content

Commit

Permalink
core.common: get rid of deprecated utcfromtimestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Aug 10, 2024
1 parent c69a0b4 commit 069264c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions my/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,10 @@ def stat_item(item):


def test_stat_iterable() -> None:
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone
from typing import NamedTuple

dd = datetime.utcfromtimestamp(123)
dd = datetime.fromtimestamp(123, tz=timezone.utc)
day = timedelta(days=3)

X = NamedTuple('X', [('x', int), ('d', datetime)])
Expand Down

0 comments on commit 069264c

Please sign in to comment.