Timezone conversions in outlook addin

469 Views Asked by At

I am developing an addin for outlook appointments, where Office.context.mailbox.item.start gives Start date time of current appointment in the client Machine local timezone. I can convert it to UTC easily.

But problem comes then, if user has set his timezone in exchange to PST and opening the addin on a machine which has local timezone as IST Office.context.mailbox.item.start it will again return the IST. How can convert this IST to PST when I all know about target timezone is it's name like "pacific standard time"? Any helps will be appreciated.

0

There are 0 best solutions below