We have a web and mobile application where a user in one time zone provides an online service. Now he has his schedule which we are storing in UTC.
My problem is:
How to show the schedule for his availability based on the user from around the globe. For eg: If the User providing the Service is from India at time 6-8 AM (UTC+5:30) on a particular day then how to show the time in other zones? Suppose in USA where the time zone difference can be UTC-10:00 or UTC-8:00. In this case the day will be previous to one he is providing service on. Or The time zone can be Australia or New Zealand where it might go to next day.
What will be best way for storing the user selected time? Whether it should be in UTC or in his local time? Should we capture the user time zone at the time of registration and then convert the data based on that ?
What if the same user is using the service from outside the place where he registered from? How should we show the time on his dashboard for the service? Based on the time zone captured at the time of registration? or something else?
How to handle day light savings ?