This command : curl -XPOST http://0.0.0.0:8000/parse --data ‘text=tomorrow from 1pm to 3pm’
returns this: [{“body”:“tomorrow from 1pm to 3pm”,“start”:0,“value”:{“values”:[{“to”:{“value”:“2024-10-04T16:00:00.000-07:00”,“grain”:“hour”},“from”:{“value”:“2024-10-04T13:00:00.000-07:00”,“grain”:“hour”},“type”:“interval”}],“to”:{“value”:“2024-10-04T16:00:00.000-07:00”,“grain”:“hour”},“from”:{“value”:“2024-10-04T13:00:00.000-07:00”,“grain”:“hour”},“type”:“interval”},“end”:24,“dim”:“time”,“latent”:false}]
However, this should be from 13 to 15 depending on my machine timezone. I am using linux and when I type: “date” in my terminal, this is what is returned: Thu 3 Oct 16:37:59 EEST 2024
Also, I am using rasa/duckling image
This behavior is affecting my rasa bot as the date range is returned incorrect, so what is the solution?