On my site the only place i use time is when i insert into the DB.
When i pull it i would like to display the time according to the user time zone. I am generating this part of the page in C# (served in ASP.NET but not using .aspx code files).
How do i display the time according to the user time zone? I have a feeling i need to have the user input his location before i can do this? Whats the best way to get time from location and take daylights saving into consideration? or cheat by translating UTC to his via JS and jquery?
You can use the Javascript Date object to get this. Date.getTimezoneOffset() will give you the difference in minutes between local and UTC representations of the date. The actual value is derived ultimately from the system clock, which, if set correctly, will know what time zone it is in.