Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def convert_timezone(time:str, input_timezone:str, output_timezone: str)-> str:
|
|
29 |
converted_time = localized_time.astimezone(output_timezone)
|
30 |
|
31 |
# Return formatted string
|
32 |
-
return f
|
33 |
except Exception as e:
|
34 |
return f"Error converting time: {str(e)}"
|
35 |
|
|
|
29 |
converted_time = localized_time.astimezone(output_timezone)
|
30 |
|
31 |
# Return formatted string
|
32 |
+
return f'The time in {output_timezone} is: {converted_time.strftime("%Y-%m-%d %H:%M:%S")}'
|
33 |
except Exception as e:
|
34 |
return f"Error converting time: {str(e)}"
|
35 |
|