Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Gurus*
Posted
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.
Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...