]> git.openstreetmap.org Git - rails.git/blobdiff - lib/gpx.rb
Localisation updates from https://translatewiki.net.
[rails.git] / lib / gpx.rb
index 3ec11c5c475a7b866a666b68a5552994f0ecb73c..ee9d53afaa0fea65cfe403f5ae9cb26fb71c3167 100644 (file)
@@ -31,7 +31,7 @@ module GPX
           elsif reader.name == "ele" && point
             point.altitude = reader.read_string.to_f
           elsif reader.name == "time" && point
           elsif reader.name == "ele" && point
             point.altitude = reader.read_string.to_f
           elsif reader.name == "time" && point
-            point.timestamp = DateTime.parse(reader.read_string)
+            point.timestamp = Time.parse(reader.read_string)
           end
         elsif reader.node_type == XML::Reader::TYPE_END_ELEMENT
           if reader.name == "trkpt" && point && point.valid?
           end
         elsif reader.node_type == XML::Reader::TYPE_END_ELEMENT
           if reader.name == "trkpt" && point && point.valid?