Repository navigation
kube_config (aio): replace deprecated utcnow/utcfromtimestamp - #2779
Hisernberg wants to merge 3 commits into
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
|
Welcome @Hisernberg! |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Hisernberg The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
datetime.utcnow()anddatetime.utcfromtimestamp()are deprecated since Python 3.12 and emit DeprecationWarning._is_expired:utcnow().replace(tzinfo=UTC)becomes the equivalentdatetime.datetime.now(datetime.timezone.utc)._is_expiredcall keeps passing a naive datetime exactly as before (fromtimestamp(expires, timezone.utc).replace(tzinfo=None)), soparse_rfc3339's input type is unchanged.examples_asynciorestartedAt annotation switches to the tz-aware now().