ruff: Fix DTZ011 `datetime.date.today()`.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-01-02 16:44:40 -08:00 committed by Tim Abbott
parent 3e10ceb022
commit d9f2f60f4b
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import logging
import os
import sys
import unicodedata
from datetime import date
from datetime import datetime, timezone
from typing import Dict, List, Optional, Union
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
@ -117,7 +117,7 @@ def update_contributor_data_file() -> None:
"zulip-android",
]
data: ContributorsJSON = dict(date=str(date.today()), contributors=[])
data: ContributorsJSON = dict(date=str(datetime.now(tz=timezone.utc).date()), contributors=[])
contributor_username_to_data: Dict[str, Dict[str, Union[str, int]]] = {}
for repo_name in repo_names: