I am building a system that allows a user to specify his/her working hours. This is stored in the database as:
- DayOfWeek: Monday
- StartTime: 08:00
- EndTime: 17:00
This information is relative to the User A, so based on his time zone. Which the user selects in his/her profile e.g. (UTC+00:00) Dublin, Edinburgh, Lisbon, London
What am I trying to Achieve?
- User B currently makes a call to a .NET Web API with a Date e.g. 01 Jan 2019.
- I need the API to return User A working hours but in User B time zone.
- User B can then book that time with User A by making a second call to the API. In this case the booking is stored in UTC date format.
What I Need?
Can someone please provide a suitable solution for this as both User A and User B can have different Time Zones?