Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 30 |
tz = pytz.timezone(timezone)
|
| 31 |
# Get current time in that timezone
|
| 32 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 33 |
-
return f"
|
| 34 |
except Exception as e:
|
| 35 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 36 |
|
|
|
|
| 30 |
tz = pytz.timezone(timezone)
|
| 31 |
# Get current time in that timezone
|
| 32 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 33 |
+
return f"xxxx {timezone} xxxx: {local_time} xxx"
|
| 34 |
except Exception as e:
|
| 35 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 36 |
|