bungpeng Posted January 15, 2005 Posted January 15, 2005 I host a simple ASP.NET application in US server, the problem is my server time is base on US time zone, how do I display local time base on every login user? of course i need to let user specify thier time zone first. Quote
*Gurus* Derek Stone Posted January 15, 2005 *Gurus* Posted January 15, 2005 You'll need to add a function to the application's presentation tier (or equivalent) which is handed a date/time and a user's locale, and returns the adjusted date/time. Your application will need to store two (2) pieces of information for this to work: the time zone offset (runs from around -11 to +14 hours) and whether or not the user wishes to enable daylight saving time (DST). For most cases it is sufficient to only implement DST for the North American time zones. Quote Posting Guidelines
bungpeng Posted January 15, 2005 Author Posted January 15, 2005 Thank you, I think it is what I want. daylight saving time is the different between server time and user local time? May I know is there any simple example to assign the user local time to adjust the display time? or I need to manually + or - the different time? Quote
*Gurus* Derek Stone Posted January 15, 2005 *Gurus* Posted January 15, 2005 daylight saving time is the different between server time and user local time? No. The offset of the time zone is the difference. Daylight saving time is an additional calculation that needs to be made. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.