How can i show correct last login date time in website?

Posted by Hemant Kothiyal on Stack Overflow See other posts from Stack Overflow or by Hemant Kothiyal
Published on 2010-05-04T07:33:33Z Indexed on 2010/05/04 7:38 UTC
Read the original article Hit count: 223

Filed under:

Hi All,

I have created a asp.net website, that we are going to deploy at India. All client of this website would be from SWEDEN.

This site have option (last login date time) at user's dashboard after successfull login.

Now my problem is that if application is deploy at India and user loggedin from SWEDEN then user is able to show only server date time which is of India.

My Steps are as following

1. User logged into site first time at 10 AM(server time), surfing starts...
2. Logged out at 10:30 (server time)
3. Application store server datetime in database.
4. Next time user come, application will store same date and time from database as last loggin datetime.

How can i store SWEDEN date time in database when user logged out from site, it will in future grow to other country also.

Please help?

© Stack Overflow or respective owner

Related posts about ASP.NET