Skip to content

Commit c5e3e08

Browse files
committed
pw_air_poller: fix UTC timezone access
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent f5d3677 commit c5e3e08

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

form-letters/net-next-closed

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
We have already submitted our pull request with net-next material for v6.17,
1+
We have already submitted our pull request with net-next material for v7.0,
22
and therefore net-next is closed for new drivers, features, code refactoring
33
and optimizations. We are currently accepting bug fixes only.
44

5-
Please repost when net-next reopens after Aug 11th.
5+
Please repost when net-next reopens after Feb 23rd.
66

77
RFC patches sent for review only are obviously welcome at any time.
88

pw_air_poller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def get_since_timestamp(self) -> str:
209209
Returns:
210210
ISO format timestamp (last check or 3 days ago)
211211
"""
212-
three_days_ago = datetime.utcnow() - timedelta(days=3)
212+
three_days_ago = datetime.now(UTC).replace(tzinfo=None) - timedelta(days=3)
213213

214214
if self.last_event_ts:
215215
try:

0 commit comments

Comments
 (0)