I have a azure botframework chatbot running in MS Teams. I got a scenario to show adpative card to user and ask for Date, Start Time and End Time. I'm using Input.Date and Input.Time pickers.
Issue is, in sql server we have UTC timezone. But in adaptive card, users might choose time based on their timezone. Is there any way I could convert this selected time to UTC timezone ?
I mean, if they choose Start Time as 8AM and End Time as 10AM (IST), I should get 2.30 AM - 4.30AM (UTC).
Below is the context.activity object
{"text":"book ticket","textFormat":"plain","type":"message","timestamp":"2022-05-17T07:20:18.165Z","localTimestamp":"2022-05-17T07:20:18.165Z","dfFBCQ","name":"User A","aadObjectId":"6f0b02-7e1d-4876-9278-0991e8fa763b"},"conversation":{"conversationType":"personal","tenantId":"aee6-xxx-xxx739ff24f","name":"teams-bot"},"entities":[{"locale":"en-US","country":"US","platform":"Web","timezone":"Asia/Calcutta","type":"clientInfo"}],"channelData":8.1659492+05:30","callerId":"urn:botframework:azure"}
Please let me know if any informations required.