ShanmuganKukatla commited on
Commit
f36ae7e
·
verified ·
1 Parent(s): b933b7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -28,12 +28,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
28
  # Create timezone object
29
  tz = pytz.timezone(timezone)
30
  # Get current time in that timezone
31
- #local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
32
- #return f"The current local time in {timezone} is: {local_time}"
33
- #################################
34
-
35
- return f"The current local time in {timezone} is: Hahahaaa"
36
- ########################
37
  except Exception as e:
38
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
39
 
 
28
  # Create timezone object
29
  tz = pytz.timezone(timezone)
30
  # Get current time in that timezone
31
+ local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
32
+ return f"Hello Man, The current local time in {timezone} is: {local_time}"
33
+ #return f"The current local time in {timezone} is: Hahahaaa"
 
 
 
34
  except Exception as e:
35
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
36