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?
px = proj.x(p.longitude)
py = proj.y(p.latitude)
- if m > 0
+ if m.positive?
frames.times do |n|
gc = if n == mm
highlightgc.dup