Skip to content

Commit

Permalink
Replace datetime.utcnow
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored and Noltari committed Aug 21, 2023
1 parent 22e86e8 commit 23897c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aioqsw/localapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import json
import logging
from dataclasses import dataclass
from datetime import datetime
from datetime import datetime, timezone
from typing import Any, cast

from aiohttp import ClientSession, ContentTypeError
Expand Down Expand Up @@ -366,7 +366,7 @@ async def update(self) -> None:
lacp_start = None

ports_statistics_data = await self.get_ports_statistics()
_datetime = datetime.utcnow()
_datetime = datetime.now(tz=timezone.utc).replace(tzinfo=None)
ports_statistics = PortsStatistics(
ports_statistics_data, lacp_start, _datetime
)
Expand Down

0 comments on commit 23897c1

Please sign in to comment.