Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
18 |
tz = pytz.timezone(timezone)
|
19 |
# Get current time in that timezone
|
20 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
21 |
-
return f"The current local time in {timezone} is: {local_time}"
|
22 |
except Exception as e:
|
23 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
24 |
|
|
|
18 |
tz = pytz.timezone(timezone)
|
19 |
# Get current time in that timezone
|
20 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
21 |
+
return f"The current local time in {timezone} provided by my 1st Agent is: {local_time}"
|
22 |
except Exception as e:
|
23 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
24 |
|