mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Fix snapshots timezone in Cloud tests (#138393)
* Fix snapshots timezone in Cloud tests * Add explanation comment
This commit is contained in:
parent
4cdc3de94a
commit
9422c4de65
@ -1943,7 +1943,10 @@ async def test_download_support_package(
|
||||
)
|
||||
|
||||
now = dt_util.utcnow()
|
||||
freezer.move_to(datetime.datetime.fromisoformat("2025-02-10T12:00:00.0+00:00"))
|
||||
# The logging is done with local time according to the system timezone. Set the
|
||||
# fake time to 12:00 local time
|
||||
tz = now.astimezone().tzinfo
|
||||
freezer.move_to(datetime.datetime(2025, 2, 10, 12, 0, 0, tzinfo=tz))
|
||||
logging.getLogger("hass_nabucasa.iot").info(
|
||||
"This message will be dropped since this test patches MAX_RECORDS"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user