Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def get_current_time_in_timezone(timezone: str) -> dict:
|
|
| 37 |
"datetime": formatted_time,
|
| 38 |
"message": f"The current local time in {timezone.replace('_', ' ')} is {formatted_time}."
|
| 39 |
}
|
| 40 |
-
return response
|
| 41 |
|
| 42 |
except Exception as e:
|
| 43 |
return {"error": f"Error fetching time for timezone '{timezone}': {str(e)}"}
|
|
|
|
| 37 |
"datetime": formatted_time,
|
| 38 |
"message": f"The current local time in {timezone.replace('_', ' ')} is {formatted_time}."
|
| 39 |
}
|
| 40 |
+
return response["message"]
|
| 41 |
|
| 42 |
except Exception as e:
|
| 43 |
return {"error": f"Error fetching time for timezone '{timezone}': {str(e)}"}
|