Spaces:
Sleeping
Sleeping
change return of time
Browse files
app.py
CHANGED
|
@@ -45,9 +45,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 45 |
tz = pytz.timezone(timezone)
|
| 46 |
# Get current time in that timezone
|
| 47 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 48 |
-
return f"
|
| 49 |
except Exception as e:
|
| 50 |
-
return f"
|
| 51 |
|
| 52 |
|
| 53 |
final_answer = FinalAnswerTool()
|
|
|
|
| 45 |
tz = pytz.timezone(timezone)
|
| 46 |
# Get current time in that timezone
|
| 47 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 48 |
+
return f"{local_time}"
|
| 49 |
except Exception as e:
|
| 50 |
+
return f"{str(e)}"
|
| 51 |
|
| 52 |
|
| 53 |
final_answer = FinalAnswerTool()
|