mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Use datetime.UTC alias [3.11] (#97067)
This commit is contained in:
@ -736,7 +736,7 @@ async def test_timestamp(hass: HomeAssistant) -> None:
|
||||
assert (
|
||||
dt_util.as_local(
|
||||
datetime.datetime.fromtimestamp(
|
||||
state_without_tz.attributes[ATTR_TIMESTAMP], datetime.timezone.utc
|
||||
state_without_tz.attributes[ATTR_TIMESTAMP], datetime.UTC
|
||||
)
|
||||
).strftime(FORMAT_DATETIME)
|
||||
== "2020-12-13 10:00:00"
|
||||
|
Reference in New Issue
Block a user