diff --git a/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/internal/simpletype/SimpleTypeUtil.java b/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/internal/simpletype/SimpleTypeUtil.java index b95ca3f3c6..b0fd4d3542 100644 --- a/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/internal/simpletype/SimpleTypeUtil.java +++ b/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/internal/simpletype/SimpleTypeUtil.java @@ -108,6 +108,7 @@ public static String convertToXml(T value, TypeDefinition type) { GDate gdate = builder.toGDate(); xmlDate.setGDateValue(gdate); + return xmlDate.getStringValue(); } else if (simpleTypeValue instanceof XmlDateTime) { XmlDateTime xmlDateTime = (XmlDateTime) simpleTypeValue; @@ -124,6 +125,7 @@ else if (simpleTypeValue instanceof XmlDateTime) { GDate gdate = builder.toGDate(); xmlDateTime.setGDateValue(gdate); + return xmlDateTime.getStringValue(); } else if (simpleTypeValue != null && simpleTypeValue instanceof XmlAnySimpleType) { // Numbers should be handled here