Linux bluetooth development
 help / color / mirror / Atom feed
* [bluez/action-ci] db1a03: cleanup_pr: fix TypeError comparing naive and awar...
@ 2026-09-10 15:28 Luiz Augusto von Dentz
  0 siblings, 0 replies; only message in thread
From: Luiz Augusto von Dentz @ 2026-09-10 15:28 UTC (permalink / raw)
  To: linux-bluetooth

  Branch: refs/heads/main
  Home:   https://github.com/bluez/action-ci
  Commit: db1a034cad6b02bf0883cad7bc783fc2d4d7e012
      https://github.com/bluez/action-ci/commit/db1a034cad6b02bf0883cad7bc783fc2d4d7e012
  Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M cleanup_pr.py

  Log Message:
  -----------
  cleanup_pr: fix TypeError comparing naive and aware datetimes

PyGithub returns timezone-aware (UTC) datetimes for pr.created_at, which
cannot be subtracted from the naive datetime.now(), causing:

  TypeError: can't subtract offset-naive and offset-aware datetimes

Use datetime.now(timezone.utc) and normalize pr.created_at in case an
older PyGithub returns a naive datetime.



To unsubscribe from these emails, change your notification settings at https://github.com/bluez/action-ci/settings/notifications

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-10 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10 15:28 [bluez/action-ci] db1a03: cleanup_pr: fix TypeError comparing naive and awar Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox