Skip to content

Commit 3ab4f07

Browse files
committed
Fix deprecation warning
1 parent ddd2b1e commit 3ab4f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/update_module_latest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def load_known_good(path: str) -> dict:
119119

120120
def write_known_good(path: str, original: dict, modules: list[Module]) -> None:
121121
out = dict(original) # shallow copy
122-
out["timestamp"] = dt.datetime.utcnow().replace(microsecond=0).isoformat() + "Z"
122+
out["timestamp"] = dt.datetime.now(dt.timezone.utc).replace(microsecond=0).isoformat() + "Z"
123123
out["modules"] = {}
124124
for m in modules:
125125
mod_dict = {"repo": m.repo, "hash": m.hash}

0 commit comments

Comments
 (0)