0
I have on application with a running timer, taking a 1000ms interval. This timer does some routines every X time, and among these routines the customer’s time is very important. we have already noticed that in some cases the time of the client that appears in the clock at the corner of the screen is right, but in the application comes with one hour less because the time zone of it is wrong.
After making the adjustments to the customer’s S.O. my application still captures the wrong date/time (with the wrong time zone).
line of code I’m using:
Dim horariostatus As String = Format(System.DateTime.Now, "yyyy-MM-dd")
horariostatus &= " " & Format(System.DateTime.UtcNow, "HH:mm:ss")
NOTE: Yes, I am storing in a String for later this information has some negotiations before sending to our server;
your application is executed on the client?
– Ricardo Pontual
@Ricardopunctual yes, the application runs on the client;
– Vande Cavassin