]> git.openstreetmap.org Git - rails.git/blobdiff - lib/gpx.rb
Don't allow any abilities for inactive users
[rails.git] / lib / gpx.rb
index 3dc448e4632cd85c9221d701f1c8386eca2b8151..274ece7d9a3160e6eba8f194fcbe6eb7956bffbc 100644 (file)
@@ -22,7 +22,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 = 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?
           end
         when XML::Reader::TYPE_END_ELEMENT
           if reader.name == "trkpt" && point && point.valid?