Commit 2926f38b by Sai Komuravelli

timezone changes and nlu exp added

parent 4f78bb67
Showing with 10 additions and 1 deletions
......@@ -7,6 +7,10 @@ from rasa_sdk.events import SlotSet
import re
from twilio.rest import Client
from datetime import datetime
import time, os
os.environ['TZ'] = 'US/Central'
time.tzset()
account_sid = "ACc460d692e5a467c60b352714b1416140"
auth_token = "bf2a890f36e3329b52d0516a14097623"
......@@ -173,7 +177,7 @@ class greet_primary_information(FormAction):
if eachDict['name'] == 'time':
timeentity=eachDict['value']
#timeentity=tracker.events[-1]['parse_data']['entities'][0]['value']
matchedDate = datetime.strptime(timeentity, "%Y-%m-%dT%H:%M:%S.000+00:00").strftime('%Y-%m-%d %H:%M:%S')
matchedDate = datetime.strptime(timeentity, "%Y-%m-%dT%H:%M:%S.000-06:00").strftime('%Y-%m-%d %H:%M:%S')
print("matchedDate",matchedDate)
# Since both the fields are populated, the form
# will no longer prompt the user separately for the end_date
......
......@@ -43,8 +43,13 @@
- yes, I am interested. what do you have?
- do you have a job?
## intent:deny
- I am not currently looking to move right now but I will definitely keep you in mind when that time comes. Thanks!
- Thanks for your consideration, but not at this time.'
- sorry not in the market
- no retired
- fuck off
- fuck you
- go to hell
- not exactly
- i am working
- I have a job, not looking
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment