Use ISO 8601 formatting for dates in filters
This commit is contained in:
1 parent
1c39820eb1
commit
ed66271be3
2 files changed
+41
-1
No files matched your search
@@ -6,6 +6,7 @@
|
||||
* @requires OpenLayers/Format/Filter.js
|
||||
* @requires OpenLayers/Format/XML.js
|
||||
* @requires OpenLayers/Filter/Function.js
|
||||
* @requires OpenLayers/BaseTypes/Date.js
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -405,7 +406,9 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
});
|
||||
},
|
||||
"Literal": function(value) {
|
||||
// no ogc:expression handling for now
|
||||
if (value instanceof Date) {
|
||||
value = OpenLayers.Date.toISOString(value);
|
||||
}
|
||||
return this.createElementNSPlus("ogc:Literal", {
|
||||
value: value
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user