Fix KML date parsing

We even have an incorrect test here. And like in ol.format.XSD, we can use
Date.parse().
This commit is contained in:
Andreas Hocevar
2016-07-26 16:56:48 +02:00
parent 1bb572310d
commit efdf9961b3
2 changed files with 3 additions and 23 deletions

View File

@@ -1138,7 +1138,7 @@ describe('ol.format.KML', function() {
expect(flatCoordinates[11]).to.be.eql(Date.UTC(2014, 1, 6, 0, 0, 0));
expect(flatCoordinates[15]).to.be.eql(Date.UTC(2014, 1, 6, 19, 39, 3));
expect(flatCoordinates[19]).to.be.eql(
Date.UTC(2014, 1, 6, 19, 39, 10) + 3 * 60
Date.UTC(2014, 1, 6, 16, 39, 10)
);
});