LeptaLuma commited on
Commit
1accd48
·
verified ·
1 Parent(s): 423d87d

change return of time

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,9 +45,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
45
  tz = pytz.timezone(timezone)
46
  # Get current time in that timezone
47
  local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
48
- return f"The current local time in {timezone} is: {local_time}"
49
  except Exception as e:
50
- return f"Error fetching time for timezone '{timezone}': {str(e)}"
51
 
52
 
53
  final_answer = FinalAnswerTool()
 
45
  tz = pytz.timezone(timezone)
46
  # Get current time in that timezone
47
  local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
48
+ return f"{local_time}"
49
  except Exception as e:
50
+ return f"{str(e)}"
51
 
52
 
53
  final_answer = FinalAnswerTool()