Spoon-assassin commited on
Commit
ef6d1c7
·
verified ·
1 Parent(s): 43b31fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -136,10 +136,10 @@ def get_current_time() -> str:
136
  """
137
  try:
138
  # Create timezone object
139
- tz = pytz.timezone("UK/London")
140
  # Get current time in that timezone
141
- local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
142
- return f"The current local time in {timezone} is: {local_time}"
143
  except Exception as e:
144
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
145
 
 
136
  """
137
  try:
138
  # Create timezone object
139
+ tz = pytz.timezone("Europe/London")
140
  # Get current time in that timezone
141
+ local_time = datetime.datetime.now(tz).strftime("%a, %b %d, %Y")
142
+ return f"The current local time is: {local_time}"
143
  except Exception as e:
144
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
145