From 52113f93aee7ca539271922db7158ef82891a373 Mon Sep 17 00:00:00 2001 From: T-BENZIN Date: Sun, 16 Mar 2025 17:03:55 +0500 Subject: [PATCH] ~ Changed time_now function to return string instead of datetime object --- reginaldCog/weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reginaldCog/weather.py b/reginaldCog/weather.py index 41f2726..6ef92bd 100644 --- a/reginaldCog/weather.py +++ b/reginaldCog/weather.py @@ -7,8 +7,8 @@ WEATHER_API_KEY = environ.get('WEATHER_API_KEY') URL = 'http://api.weatherapi.com/v1' -def time_now() -> datetime: - return datetime.now(timezone.utc) +def time_now() -> str: + return str(datetime.now(timezone.utc)) def get_current_weather(location: str) -> str: