bstraehle commited on
Commit
5866f5c
·
1 Parent(s): 410a658

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -24,7 +24,9 @@ def time(text: str) -> str:
24
  """Returns current datetime. Use this for any questions related to knowing current date and time.
25
  The input should always be an empty string, and this function will always return current datetime.
26
  Any date and time mathematics should occur outside this function."""
27
- return datetime.now().strftime("%d/%m/%Y %H:%M:%S")
 
 
28
 
29
  def invoke(openai_api_key, prompt, agent_option):
30
  if (openai_api_key == ""):
 
24
  """Returns current datetime. Use this for any questions related to knowing current date and time.
25
  The input should always be an empty string, and this function will always return current datetime.
26
  Any date and time mathematics should occur outside this function."""
27
+ dt = datetime.now()
28
+ dt_local = dt.astimezone()
29
+ return dt_local.strftime("%d/%m/%Y %H:%M:%S")
30
 
31
  def invoke(openai_api_key, prompt, agent_option):
32
  if (openai_api_key == ""):