~ Changed time_now function to return string instead of datetime object

This commit is contained in:
T-BENZIN 2025-03-16 17:03:55 +05:00
parent e3c931650b
commit 52113f93ae

View File

@ -7,8 +7,8 @@ WEATHER_API_KEY = environ.get('WEATHER_API_KEY')
URL = 'http://api.weatherapi.com/v1' URL = 'http://api.weatherapi.com/v1'
def time_now() -> datetime: def time_now() -> str:
return datetime.now(timezone.utc) return str(datetime.now(timezone.utc))
def get_current_weather(location: str) -> str: def get_current_weather(location: str) -> str: