Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 44 |
tz = pytz.timezone(timezone)
|
| 45 |
# Get current time in that timezone
|
| 46 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 47 |
-
return f
|
| 48 |
except Exception as e:
|
| 49 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 50 |
|
|
|
|
| 44 |
tz = pytz.timezone(timezone)
|
| 45 |
# Get current time in that timezone
|
| 46 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 47 |
+
return f'The current local time in {timezone} is: {local_time}'
|
| 48 |
except Exception as e:
|
| 49 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 50 |
|