Closed heidivanparys closed 2 years ago
Dear @heidivanparys
I see that in our local we are not calling anomore that method, I'm formating the date using
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm a z"); df.format(regItem.getInsertdate());
It will be commited soon. In meanwhile try using the code above. Best regards
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm a z");
I am not sure that that will give a correct date according to e.g. XML? See https://www.w3.org/TR/xmlschema-2/#dateTime
When using the REST API to get register items in different format, I get the following error:
This probably has to do with the locale on the system the application is running on (I get this error on my local machine, with the locale set to Danish).
https://github.com/ec-jrc/re3gistry/blob/ba3be0ef5a286b193c8050618b90c2815ddcface/sources/Re3gistry2RestAPI/src/main/java/eu/europa/ec/re3gistry2/restapi/util/DateUtil.java#L24-L35