Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Ajax jQuery
Step 1: I am Working on chat application. I saved the message and datetime in database table. In my localhost it saves correct time (ie) current system datetime.
but problem is i added my code into server it saves the server time not saving the sending time. And also chat application is common for global.how to manage the time ?
Posted 27-Jan-13 16:33pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
GopinathGuru at 27-Jan-13 23:27pm
   
I am creating a web chat application using asp.net vb. I have got the chat system to work as messages are sent and relayed back to the clients. But there was something i noticed but never thought it would be a problem. I am from England and the chat application is sitting on servers in America and noticed when the message displayed the time, the times were situated in American time zones. How would i go about setting the timezones that will correspond to there country timezones.
 
So if the message display 17:00 American time, then the message sent to England should display 12:00 English time.
 
All messages are stored in SQL Server Database. And in Table it take the server time.But sertime is India

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 275
1 OriginalGriff 230
2 BillWoodruff 173
3 CPallini 155
4 Kamal Rocks 144
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 27 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100