Click here to Skip to main content
16,001,998 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,

I have created an application in asp.net(in Kuwait) and I have clients in India. The problem is, consider i am in Middle East timezone and one of my customers is in India, now there is a time variation. I came to know from my India client that the application is displaying our timezone, but not his.
Is there any way to make the application read/take the time from the local system?

Thanks & Regards,
Taposi.
Posted
Comments
Philippe Mori 26-May-12 13:23pm    
The easy way is to ask the client its time zone once (or allows him to change it) and then do all conversion using the user specified time zone.

1 solution

You will need to set your dates to universal time.

A good example is:

http://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime(v=vs.100).aspx[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900