icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • bluetooth / serial / internal GPS, simulator
  • offline raster maps (common grids and projections)
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • ... and more
  • MIDP and Symbian phones
  • Blackberry
  • Android
  • Windows Mobile 5.x/6.x
  • Windows Phone coming
Visit our wiki to see all features, guides and howtos. Project tracker.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Incorrect timezone with daylight saving time

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
xvici



Joined: 29 Mar 2008
Posts: 6

PostPosted: Fri Apr 10, 2009 2:13 pm    Post subject: Incorrect timezone with daylight saving time Reply with quote

Hi,

I have recently upgraded to 0.9.83 (from .81) version and get problems with new time format in GPX log. The time itself is correct but the timezone not. I guess, that in central Europe during daylight saving time we have +02:00. But there is +01:00 in GPX logs. It brings some problems when processing logs in PC.

I have searched the discussion but haven't found similar posts.

Maybe it would be great to implement option in settings menu that everybody could choose what format to log.

Phone: SE K550i
Timezone in phone settings menu: +01:00
Daylightsaving time in phone settings menu: ON
TrekBuddy tech info: Timezone GMT+01:00; true; 3600000

Thank you for developing such a great tool
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5085

PostPosted: Sun Apr 19, 2009 1:34 pm    Post subject: Reply with quote

I will add the config options: "enable GMT timestamp" and "timezone correction"
Back to top
View user's profile Send private message
BeardyGit



Joined: 11 Apr 2009
Posts: 1

PostPosted: Wed Apr 29, 2009 10:20 pm    Post subject: Time zone issue may not be TrekBuddy; could be OS Reply with quote

I've just tripped over the same issue. I'm based in the UK and have the device time zone set to GMT (Dublin, London). The device applies daylight savings to the current time, but still seems to label it as GMT. That 'GMT' time is then written into TrekBuddy GPX logs as Zulu time (with a terminating 'Z'). So it seems that TB may have been doing what it was told ... but it was told to do the wrong thing by the OS?

I don't know if it would be possible to detect whether daylight saving is in effect, or even to access the time stamp from the GPS signals themselves, which is more likely to be correct than Blackberry reports, I'd have thought!

Many thanks - great tool!
Back to top
View user's profile Send private message
herman_p



Joined: 07 May 2011
Posts: 5

PostPosted: Sat May 07, 2011 9:35 pm    Post subject: Reply with quote

This is a topic kick, as I think this phenomenon still exists.
Let me give some details to illustrate this.

Living in The Netherlands we are at GMT+1, also having Daylight saving of +1 hour now.
I am using TB 1.0.11 on a Nokia 6700 classic, firmware V13.21

I tested four different time setting combinations on the handy, with the following results

GMT+1, Daylight saving +1 hour
Handy clock indicates 20:34
GPX logfile entry
<time>2011-05-05T19:34:37.686Z</time>

GMT+2, Daylight saving 0
Handy clock indicates 20:55
GPX logfile entry
<time>2011-05-05T18:55:49.611Z</time>

GMT +0, Daylight saving +2 hours
Handy clock indicates 21:14
GPX logfile entry
<time>2011-05-05T21:14:52.795Z</time>

GMT +0, Daylight saving +0 hours
Handy clock indicates 21:29
GPX logfile entry
<time>2011-05-05T21:29:32.82Z</time>


When the handy is set to GMT+1, Daylight saving +1 hours, the technical screen of TB reports the following:

Time zone
GMT+1:00; false; 3600000

It seems to me that Daylight saving time is not reflected in the logfile, but maybe I am doing something wrong?
For the time being my workaround is to set the handy to GMT+2, Daylight saving 0, which results in a logfile with correct timestamps.

Enjoy!

Herman
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5085

PostPosted: Mon May 09, 2011 7:06 pm    Post subject: Reply with quote

If you see GMT+1:00; false; 3600000 for GMT+1 timezone with daylight, then it means midlets get wrong information from the OS, because there should be true instead of false (meaning: this timezone uses daylight saving time), and the raw offset would then probably be 7200000.
When I select Czech Republic region in Nokia 6720c (how can I configure DST in Nokia??), it sets GMT+2 timezone, which gives correct offset of 2 hours, but strictly speaking it should be GMT+1 with DST (but I ccanot find where to configure this).

Also tried to select Netherlands, it resulted in "GMT+2 Netherlands" TZ.
Back to top
View user's profile Send private message
herman_p



Joined: 07 May 2011
Posts: 5

PostPosted: Mon May 09, 2011 9:04 pm    Post subject: Reply with quote

Hi Kruch,

Thank you for responding, for looking into this.

On my Nokia 6700c I can set DST in Settings / Date and time / Date & time settings where there are separate entries for Time zone (expressed in GMT +/- something) and Daylight saving.
AFAIK the 6700c has no options to set a country directly as the 6720c apparently has.
I wonder, if this is an OS interface issue, how to persuade Nokia to look into this?

Enjoy!

Herman
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5085

PostPosted: Tue May 10, 2011 9:17 am    Post subject: Reply with quote

It looks like known issue (at the bottom of http://library.forum.nokia.com/index.jsp?topic=/Java_Developers_Library/GUID-61343D82-D041-4B59-B0F1-9923C17AB4DF.html). If the workaround (setting GMT+2 TZ) does not interfere with anything, then you will have to live with it, I'm afraid Wink

And I think you can just forget about persuading Nokia to look into this. Unless you are friend of their CEO or some... Cool
Back to top
View user's profile Send private message
herman_p



Joined: 07 May 2011
Posts: 5

PostPosted: Tue May 10, 2011 9:34 am    Post subject: Reply with quote

Hi Kruch,

Once more thank you for your time!
I guess it is something I have to learn to live with Wink

Enjoy!

Herman.
Back to top
View user's profile Send private message
Roland von Bremen



Joined: 25 Sep 2011
Posts: 6

PostPosted: Sat May 19, 2012 12:17 pm    Post subject: Time stamp issue still there? Reply with quote

On my Sonim XP5300_10.0.0 the time stamp issue is still present. On the screen, TrekBuddy reports the local time correctly 13:37, which is CET+1h daylight saving (DST). The technical info lists the TimeZone:

GMT+1:00; true; 3600000

which I assume means, time zone is GMT+1 plus one h for DST. The OS is providing the correct time zone and DST information to TrekBuddy.

The correct
Code:
<time>
would be 2h behind, i. e. 11:38.

However the .gpx log records

Code:
<time>2012-05-19T12:39:33Z</time>


This is shifted just one h and is not Zulu nor UTC.

Please check. This is with TrekBuddy 1.1.1
Back to top
View user's profile Send private message
Roland von Bremen



Joined: 25 Sep 2011
Posts: 6

PostPosted: Sat May 19, 2012 3:32 pm    Post subject: Reply with quote

I changed DST to off on the phone. This was reflected in the technical info, TimeZone:

GMT+1:00; false; 3600000

The phone now displayed UTC+1. The displayed time on the TB screen changed to UTC+1 (without DST, CET) and the recorded <time> tag was 1h earlier and set correctly to UTC <time>2012-05-19T14:03:41Z</time>. The file name had UTC+1 (20120519-150250.gpx).

I then set DST on and phone time to DST+3.

The phone now displayed UTC+3. The displayed time on the TB screen was UTC+2 and the recorded <time> tag was UTC+1 <time>2012-05-19T15:48:07Z</time>. The file name had UTC+3 (20120519-174535.gpx).

This leads to the following conclusions:

1. TB is getting the time zone info from the phone correctly
2. TB is also getting the DST info from the phone correctly
3. TB uses the time on the phone to build the file name, this does not really matter. It would be better to use GPS time to avoid potential conflicts.
4. TB uses GPS (UTC) time and the time zone and DST info from the phone to build the (local) time on the display. This works as it should and is not confused by odd settings of the phone time.
5. TB uses some odd mechanism to go from GPS time to UTC and gets confused on the way with DST.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group