-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save local timezone #911
Comments
I'd like this as an option in the custom URL |
I'm trying to think of the least friction way of doing this. I'm aware GPX extensions exist, but there's no guarantee that all applications read what I come up with, or if there are any well known GPX extensions for storing an additional piece of info like this. I wasn't able to find anything well known to store offsets. Would it be useful instead if I introduced some toggle like "Record local timezone anyway". If you toggle it, then the Some validation will be required right now, what you could do is test your existing GPX files, edit them to have an offset, and see if your applications accept it. Like:
At a glance there seem to be some classes in Java that can help me here, but it will require Android 24+ or Android 26+ (Android 7+ or 8+). For my own reference the ZonedDateTime could help me greatly. I can take the location epoch passed from the OS, and convert it to the user's time. Then easily write it out to the formats shown above.
|
I've had the same problem for a month... $data[0] is the coll 2021-09-27T10:46:09 Thanks!!! CODE:
|
@MexasPT I think that's PHP? I am not PHP savvy but something like this should work. DateTime should be able to read ISO8601 strings.
|
I might be able to use this, should work on older Android versions too. The Calendar is used just to figure out the timezone.
|
…rmat with timezone offset. eg 2016-03-05T21:24:29.949+02:00 Issue #911
Today I played a bit with a GPX file, I deliberately modified all the timestamps to have a timezone offset in it. I then tested it with exiftool, GPXSee, GPSVisualizer, UTrack. They were all able to read the times with the offsets. So I'm thinking to add a setting to just go ahead and give the option. In the 'logging preferences' screen, how's something like this (default false) |
New option added under Logging details, under advanced settings. You can write times with timezone offset where possible (GPX, KML, GeoJSON). It will write the datetime in ISO8601 format with timezone offset. eg Custom URL gets a %TIMEOFFSET parameter. I've put a test APK here: https://github.com/mendhak/gpslogger/releases/tag/v119-rc1 |
v119 is now on F-Droid and in the releases. I'm going around and closing some issues. |
Hello,
As correctly explained here, when saving to GPX, KML, or custom URL, points are logged using UTC time.
If we want to use the log file in any application, it means we must remember ourself where the log was recorded (I mean in which timezone). If I recorded an activity at the other end of the world, I'll probably want to display that activity using the timezone of the country I was, not the timezone of the country I'm currently in.
These files saved by GPSLogger currently do not give any way to know the local timezone. If I forget in which country the log was recorded, there's no way convert logs to local dates; except using a third-party webservice (like theses), which are often not free to use.
I think it would be nice to add an extra information to allow these date conversions
Thanks
The text was updated successfully, but these errors were encountered: