diff --git a/cygnus-ngsi/src/main/java/com/telefonica/iot/cygnus/sinks/NGSIArcgisFeatureTableSink.java b/cygnus-ngsi/src/main/java/com/telefonica/iot/cygnus/sinks/NGSIArcgisFeatureTableSink.java index a8e3851bd..94f1a0157 100644 --- a/cygnus-ngsi/src/main/java/com/telefonica/iot/cygnus/sinks/NGSIArcgisFeatureTableSink.java +++ b/cygnus-ngsi/src/main/java/com/telefonica/iot/cygnus/sinks/NGSIArcgisFeatureTableSink.java @@ -679,9 +679,9 @@ private Object parseFiwareDate(String dateStr) { */ private Object parseEsriFieldTypeDate(String millisFromEpocStr) { - DateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX"); try { - Date date = dateFormatter.parse(Long.parseLong(millisFromEpocStr)); + Long epoch = Long.parseLong(millisFromEpocStr); + Date date = new Date(epoch); return date; } catch (ParseException e) { LOGGER.error("[NGSIArcgisAggregator] Unexpected DateTime format: " + millisFromEpocStr);