diff --git a/make_help_scripts/create_pr_stats.py b/make_help_scripts/create_pr_stats.py index 9e5a94b791..9299c43e4a 100644 --- a/make_help_scripts/create_pr_stats.py +++ b/make_help_scripts/create_pr_stats.py @@ -15,7 +15,7 @@ import requests import os -from datetime import datetime, timedelta +from datetime import datetime, timedelta, timezone import time def get_api_response(url): @@ -696,7 +696,7 @@ def print_contributors_stats(contributors_stats): blacklist = ["dependabot[bot]", "mergify[bot]"] # Get the current date and time -current_date = datetime.now(datetime.timezone.utc) +current_date = datetime.now(timezone.utc) # Calculate one year ago from the current date one_year_ago = current_date - timedelta(days=365)