Skip to content

Commit

Permalink
Addressed method deprecation in the updateIndexes.py script (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
relgit committed Apr 23, 2024
1 parent dcd5715 commit 0e59b6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions updateIndexes.py
Expand Up @@ -4,7 +4,7 @@
import hashlib
import os
import plistlib
from datetime import datetime
from datetime import datetime, UTC
from glob import glob


Expand All @@ -17,7 +17,7 @@ def main():
# Iterate through index types
file_types = {"Icons": "png", "Manifests": "plist"}
for index_type, ext in file_types.items():
index = {"date": datetime.utcnow()}
index = {"date": datetime.now(UTC)}

# Get all matching files in the desired subfolder
file_list = glob("%s/%s/*/*.%s" % (repo_path, index_type, ext))
Expand Down

0 comments on commit 0e59b6e

Please sign in to comment.