From 979083bb2199b658014b35e154235311a11ee585 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 19 Dec 2013 13:43:12 +0100 Subject: [PATCH] Fix ol.format.IGC HFDTE parsing (HFDTEDDMMYY not HFDTEYYMMDD) --- src/ol/format/igcformat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/format/igcformat.js b/src/ol/format/igcformat.js index 65884aa33a..4ebefe6f43 100644 --- a/src/ol/format/igcformat.js +++ b/src/ol/format/igcformat.js @@ -132,9 +132,9 @@ ol.format.IGC.prototype.readFeatureFromText = function(text) { properties[m[1]] = goog.string.trim(m[2]); m = ol.format.IGC.HFDTE_RECORD_RE_.exec(line); if (m) { - year = 2000 + parseInt(m[1], 10); + day = parseInt(m[1], 10); month = parseInt(m[2], 10); - day = parseInt(m[3], 10); + year = 2000 + parseInt(m[3], 10); } } }