alirajabi commited on
Commit
d05cf21
·
verified ·
1 Parent(s): 1a8796b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"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
 
 
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