lchumaceiro commited on
Commit
e286479
·
verified ·
1 Parent(s): 0dd5ee2

fixed time

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -52,7 +52,14 @@ def generate_sound(sound_type: str, duration: int) -> str:
52
  # ✅ Time zone tool
53
  @tool
54
  def get_current_time_in_timezone(timezone: str) -> str:
55
- """Fetches the current local time in a specified timezone."""
 
 
 
 
 
 
 
56
  try:
57
  tz = pytz.timezone(timezone)
58
  local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
 
52
  # ✅ Time zone tool
53
  @tool
54
  def get_current_time_in_timezone(timezone: str) -> str:
55
+ """Fetches the current local time in a specified timezone.
56
+
57
+ Args:
58
+ timezone (str): The timezone name (e.g., 'America/New_York', 'Europe/London').
59
+
60
+ Returns:
61
+ str: The current local time in the specified timezone.
62
+ """
63
  try:
64
  tz = pytz.timezone(timezone)
65
  local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")