Hi community,
I'm currently building a Botflow and I need to ask the customer for a timeslot during the day. The slot works fine, the resulting timestamp is in UTC like everything in Architect. Normally I would have no issues converting it to the local timezone, however:
Suppose the current local time is 3 o'clock, which is 1:00 UTC.
- if the customer says something like "at 6", the resulting slot will contain "06:00:00" which I have to use as 6 o'clock local (customer's) time
- if the customer says something like "three hours from now", which also means 6 o'clock in local time, the resulting slot will contain the value "04:00:00", since it is calculated as 1 o'clock UTC + 3 hours.
If I always add the offset between UTC and local timezone to the result, the result in the first scenario will be wrong.
If I don't convert it, the second one is wrong.
Any ideas?
#Architect #Bots
------------------------------
Florin Cosmin Radulescu
Genesys - Employees
------------------------------