Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ try:
|
|
| 79 |
# Get current time in that timezone
|
| 80 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 81 |
return f"The current local time in {timezone} is: {local_time}"
|
| 82 |
-
except Exception as e
|
| 83 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 84 |
|
| 85 |
|
|
|
|
| 79 |
# Get current time in that timezone
|
| 80 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 81 |
return f"The current local time in {timezone} is: {local_time}"
|
| 82 |
+
except Exception as e
|
| 83 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 84 |
|
| 85 |
|