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