I have a small web application (.Net Framwrok 3.5, ASP) where the user sets the date time to an action be automatically performed on the server but recently i discovered that since the server and the user have different time zones, when the user picks a time to perform an action, it gets done on the server side one hour later than the sheduled one.
This is caused by the diference in timezone from the server and the client.
Im looking for the best approach to solve this and im considering the next options:
1.- Give, next to the time input, a drop down list of time zones(Ex: UTC +1 Bursels, Copenhage,paris; UTC+2.. Etc). Is there any way to programmatically get this list or must code it by myself?
2.- Do the same but on some kind of profile page i have, this way I could store the value but may have the case that the user never takes care of setting the proper value.
3.- Get the time offset from the user due some browser script or cookie, this is the best approach I found about it but I'm unsure about it's reliability: http://www.codeproject.com/Questions/107174/How-to-get-client-machine-time-zone
4.- Is there any way to have it by any simple C# instruction?
5.- Do nothing at all, it's an option, not the best since this kind of details does matter but I don't discard it.