#9425 Python 3.12 issues: datetime.utcnow is deprecated
Closed: fixed by frenaud. Opened by abbra.

/usr/lib/python3.12/site-packages/ipalib/rpc.py:925: DeprecationWarning: datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.now(datetime.UTC).
  timestamp=datetime.datetime.utcnow())

PR: https://github.com/freeipa/freeipa/pull/6940

Metadata Update from @abbra:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6940

master:

  • 09497d2df0fbd4bb5ad798e5c0798a0faa632f11 python 3.12: utcnow function is deprecated
  • 8173e5df2d0e8dac48f26882ff16979d0da325b5 ipa-epn: don't use too general exception

master:

  • 59e68f79e48e5eaa18c60f3dc418d0bf516684ab ipa-epn: include timezone info
  • 0f16b72bcb86764aaffa69a9ccad4011e811f856 ipa-cert-fix: use timezone-aware datetime
  • 33549183effa3a880f2d79955939b25142e72ff9 ipa-server-guard: make the lock timezone aware

ipa-4-10:

  • 6bf60a2be6f23b56adbda6facf71f4d5b102b0a1 python 3.12: utcnow function is deprecated
  • 54ced68760b8b54aa498d2df3b65b3bec6065154 ipa-epn: don't use too general exception
  • 95ac603e96d8249cff4440095bd1894c9c822951 ipa-epn: include timezone info
  • c44b07edb0e7d87b7c93f0ab1697e775d2b42b6c ipa-cert-fix: use timezone-aware datetime
  • 6c8982208b7df2619231b52e3a5ce317e5b4fc1b ipa-server-guard: make the lock timezone aware

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata