X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2fabc46421f9e908ef6902ea7c4890a0032af446..38b74c1c48521c3de988b774117d6f9febcf1c3f:/lib/gpx.rb diff --git a/lib/gpx.rb b/lib/gpx.rb index 3dc448e46..274ece7d9 100644 --- a/lib/gpx.rb +++ b/lib/gpx.rb @@ -22,7 +22,7 @@ module GPX elsif reader.name == "ele" && point point.altitude = reader.read_string.to_f elsif reader.name == "time" && point - point.timestamp = Time.parse(reader.read_string) + point.timestamp = Time.parse(reader.read_string).utc end when XML::Reader::TYPE_END_ELEMENT if reader.name == "trkpt" && point && point.valid?