Spaces:
Sleeping
Sleeping
Fix return statement
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def get_current_local_time_and_timezone()-> str:
|
|
| 15 |
"""
|
| 16 |
local_timezone = datetime.now().astimezone().tzinfo # Get local timezone
|
| 17 |
local_time = datetime.now(local_tz).strftime('%Y-%m-%d %H:%M:%S')
|
| 18 |
-
return
|
| 19 |
|
| 20 |
@tool
|
| 21 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 15 |
"""
|
| 16 |
local_timezone = datetime.now().astimezone().tzinfo # Get local timezone
|
| 17 |
local_time = datetime.now(local_tz).strftime('%Y-%m-%d %H:%M:%S')
|
| 18 |
+
return f"The current local time in {local_timezone} is: {local_time}"
|
| 19 |
|
| 20 |
@tool
|
| 21 |
def get_current_time_in_timezone(timezone: str) -> str:
|