Skip to content

Commit

Permalink
updated a depracated datetime function
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Jan 29, 2024
1 parent 971db9a commit c08b618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installer/generate_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import secrets
from collections import defaultdict
from datetime import UTC, datetime
from datetime import datetime
from pathlib import Path

import bcrypt
Expand Down Expand Up @@ -334,7 +334,7 @@ def _argocd(self):
h = bcrypt.hashpw(
new_pw.encode("ascii"), bcrypt.gensalt(rounds=15)
).decode("ascii")
now_time = datetime.now(UTC).strftime("%Y-%m-%dT%H:%M:%SZ")
now_time = datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")

self._set("argocd", "admin.password", h)
self._set("argocd", "admin.passwordMtime", now_time)
Expand Down

0 comments on commit c08b618

Please sign in to comment.