0

I am working on a SaaS product where the data has to be loaded to the consumer (End User) based on the producers (Client) time availablity, unfortunately the time availability of the producers are not stored in UTC, So I have tried the following technique to fetch the records,

--@offSet = '+05:30'
Select * From ProducerAvailablitiy
Where producerTimeSlot is 
between Cast(switchoffset(GETUTCDATE(),@offSet)  As datetime) and Cast(switchoffset(GETUTCDATE(),@offSet) + 1

I have a table with list of timezone offset, which are refrenced to the producer (Client) this seems to be working properly as of now. But I read this article. According to it single timezone can have multiple offset (Daylight savings) so I just want to know how to tackle this situation.

Gokulan P H
  • 1,838
  • 1
  • 10
  • 13

0 Answers0