arieltoledo commited on
Commit
2ced3cc
·
verified ·
1 Parent(s): b0a8435

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -30,6 +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"The current local time in {timezone} is: {local_time}"
34
  except Exception as e:
35
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
 
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
+ print(f"The current local time in {timezone} is: {local_time}")
34
  return f"The current local time in {timezone} is: {local_time}"
35
  except Exception as e:
36
  return f"Error fetching time for timezone '{timezone}': {str(e)}"