Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,10 +136,10 @@ def get_current_time() -> str:
|
|
| 136 |
"""
|
| 137 |
try:
|
| 138 |
# Create timezone object
|
| 139 |
-
tz = pytz.timezone("
|
| 140 |
# Get current time in that timezone
|
| 141 |
-
local_time = datetime.datetime.now(tz).strftime("%
|
| 142 |
-
return f"The current local time
|
| 143 |
except Exception as e:
|
| 144 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 145 |
|
|
|
|
| 136 |
"""
|
| 137 |
try:
|
| 138 |
# Create timezone object
|
| 139 |
+
tz = pytz.timezone("Europe/London")
|
| 140 |
# Get current time in that timezone
|
| 141 |
+
local_time = datetime.datetime.now(tz).strftime("%a, %b %d, %Y")
|
| 142 |
+
return f"The current local time is: {local_time}"
|
| 143 |
except Exception as e:
|
| 144 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 145 |
|