openlayers
Version:
Build tools and sources for developing OpenLayers based mapping applications
18 lines (11 loc) • 434 B
JavaScript
goog.provide('ol.test.XSD');
goog.require('ol.format.XSD');
describe('ol.format.XSD', function() {
describe('readDateTime', function() {
it('can handle non-Zulu time zones', function() {
var node = document.createElement('time');
node.textContent = '2016-07-12T15:00:00+03:00';
expect(new Date(ol.format.XSD.readDateTime(node) * 1000).toISOString()).to.eql('2016-07-12T12:00:00.000Z');
});
});
});