Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-4482

Replace deprecated datetime.utcnow() with datetime.now(timezone.utc) (or related)

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • None
    • None
    • 5
    • False
    • None
    • False

      As discussed here [1], the datetime.utcnow function is deprecated in Python 3.12.

      The suggestion is to update it with the datetime.utcnow, according to the official doc [2]. On [3] we have an article about this change.

      It will take some time to cause real issues so it is not high priority now (nov-23)

      [1] https://redhat-internal.slack.com/archives/C04476G1F7H/p1701273636778219
      [2] https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow
      [3] https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated

            Unassigned Unassigned
            rh-ee-sdoran Sam Doran
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: