peterpull commited on
Commit
f858ba0
·
1 Parent(s): 1b10a40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def generate_text() -> str:
39
  def store_message(chatinput: str, chatresponse: str):
40
  if chatinput and chatresponse:
41
  with open(DATA_FILE, "a") as file:
42
- now = datetime.now()
43
  timestamp = now.strftime("%Y-%m-%d %H:%M:%S")
44
  file.write(f"{timestamp},{chatinput},{chatresponse}\n")
45
  print(f"Stored message: {timestamp},{chatinput},{chatresponse}")
 
39
  def store_message(chatinput: str, chatresponse: str):
40
  if chatinput and chatresponse:
41
  with open(DATA_FILE, "a") as file:
42
+ now = datetime.now(tz=AEST)
43
  timestamp = now.strftime("%Y-%m-%d %H:%M:%S")
44
  file.write(f"{timestamp},{chatinput},{chatresponse}\n")
45
  print(f"Stored message: {timestamp},{chatinput},{chatresponse}")