Bonjour,
I am playing with an application do get infos from hybrid cars from toyota,
to do this, I am using a BT interface from OBDLink, a service using Serial & AsyncStreams.
Alltogether, I am quite proud from my results and very satisfied from B4A, but I meet a strange problem with timeformat on asus transformer TF101 (not checked yet on other platforms).
one hour is added...
in a service whose name is "scanner", I have the following code:
in the activity, I have the following code:
the strange thing, is I see for instance "01:00:06" instead of "00:00:06"
there is always one hour more.
I checked using log and the Trip_Time is ok;
example :
Start_Ticker= 1311437838853
New_Ticker=1311437845623
Trip_Time= 6770 but we see it as "01:00:06"
Is there a relation with time offset to GMT????
I will check tomorrow if I get the same thing on a HTC HD
I am playing with an application do get infos from hybrid cars from toyota,
to do this, I am using a BT interface from OBDLink, a service using Serial & AsyncStreams.
Alltogether, I am quite proud from my results and very satisfied from B4A, but I meet a strange problem with timeformat on asus transformer TF101 (not checked yet on other platforms).
one hour is added...
in a service whose name is "scanner", I have the following code:
B4X:
....
Start_Ticker=DateTime.Now
Old_Ticker= Start_Ticker
......
New_Ticker= DateTime.Now
......
Trip_Time= New_Ticker - Start_Ticker
Old_Ticker=New_Ticker
B4X:
lbl_trip_time.Text=DateTime.Time(scanner.Trip_Time)
there is always one hour more.
I checked using log and the Trip_Time is ok;
example :
Start_Ticker= 1311437838853
New_Ticker=1311437845623
Trip_Time= 6770 but we see it as "01:00:06"
Is there a relation with time offset to GMT????
I will check tomorrow if I get the same thing on a HTC HD