How can i show correct last login date time in website?
- by Hemant Kothiyal
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?