<NME> TrailHistoryElement.java
<BEF> package cgeo.geocaching.models;

import android.location.Location;
import android.os.Parcel;
import android.os.Parcelable;

public class TrailHistoryElement implements Parcelable {
    private Location location;
    private long timestamp;

    public TrailHistoryElement(final double latitude, final double longitude, final double altitude, final long timestamp) {
        location = new Location("trailHistory");
        location.setLatitude(latitude);
        location.setLongitude(longitude);
        location.setAltitude(altitude);
        this.timestamp = timestamp;

    public TrailHistoryElement(final Location loc) {
        location = loc;
        timestamp = System.currentTimeMillis();
    }

    public Location getLocation() {
    }

    public Location getLocation() {
        return location;
    }

    public double getLatitude() {
        return location.getLatitude();
    }

    public double getLongitude() {
        return location.getLongitude();
    }

    public double getAltitude() {
        return location.getAltitude();
    }

    public long getTimestamp() {
        return timestamp;
    }

    public float distanceTo(final Location dest) {
        return location.distanceTo(dest);
    }


    // parcelable methods

    public static final Parcelable.Creator<TrailHistoryElement> CREATOR = new Parcelable.Creator<TrailHistoryElement>() {

        @Override
        public TrailHistoryElement createFromParcel(final Parcel source) {
            return new TrailHistoryElement(source);
        }

        @Override
        public TrailHistoryElement[] newArray(final int size) {
            return new TrailHistoryElement[size];
        }

    };

    private TrailHistoryElement(final Parcel parcel) {
        location = parcel.readParcelable(Location.class.getClassLoader());
        timestamp = parcel.readLong();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(final Parcel dest, final int flags) {
        dest.writeParcelable(location, flags);
        dest.writeLong(timestamp);
    }

}

<MSG> respect timezone info in position history (fix #9143)

<DFF> @@ -4,6 +4,8 @@ import android.location.Location;
 import android.os.Parcel;
 import android.os.Parcelable;
 
+import java.util.TimeZone;
+
 public class TrailHistoryElement implements Parcelable {
     private Location location;
     private long timestamp;
@@ -17,7 +19,7 @@ public class TrailHistoryElement implements Parcelable {
 
     public TrailHistoryElement(final Location loc) {
         location = loc;
-        timestamp = System.currentTimeMillis();
+        timestamp = System.currentTimeMillis() - TimeZone.getDefault().getOffset(timestamp);
     }
 
     public Location getLocation() {

respect timezone info in position history (fix #9143)