File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 55
66pw_constants = importlib .import_module ("plugwise_usb.constants" )
77
8- # test using utc timezone
9- utc_now = datetime .now (tz = UTC ).replace (tzinfo = UTC )
10- utc_now_offset = datetime .now (tz = UTC ).replace (tzinfo = UTC ) + timedelta (
11- days = 1 , hours = 4 , seconds = 30
12- )
8+ # test using utc timezone - 2025-04-03 22:00:00
9+ utc_now = datetime (
10+ 2025 , 4 , 3 , 22 , 0 , 0
11+ ) # datetime.now(tz=UTC).replace(tzinfo=UTC)
12+ # utc_now_offset = datetime.now(tz=UTC).replace(tzinfo=UTC) + timedelta(
13+ # days=1, hours=4, seconds=30
14+ # )
1315
1416
1517# generate energy log timestamps with fixed hour timestamp used in tests
16- # 2025-04-03 22:00:00
17- hour_timestamp = datetime (
18- 2025 , 4 , 3 , 22 , 0 , 0
19- ) # utc_now.replace(minute=0, second=0, microsecond=0)
18+ hour_timestamp = utc_now .replace (minute = 0 , second = 0 , microsecond = 0 )
2019
2120LOG_TIMESTAMPS = {}
2221_one_hour = timedelta (hours = 1 )
You can’t perform that action at this time.
0 commit comments