time problem

  • Thread starter Thread starter blazerguns
  • Start date Start date
B

blazerguns

Hi all,

Iam developing a web application where iam using backend as
c#. I Use PInvoke method to use GetLocalTime(). It works fine but as
soon as i change the timezone through mu system clock the new updated
time is not shown when i recall GetLocalTime(). It still shows the old
time. Why? I dont understand how GetLocalTime() works. Even better if
anyone can tell me how to solve this problem. If i restart the web
application then the change is made.

Varun
 
Why don't you use the DateTime.ToLocalTime() method. Why use P/Invoke?

Ciaran O'Donnell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top