diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java index 73d4392..d11d242 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java @@ -1182,14 +1182,14 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements if(tMetadata instanceof ExportMetadata){ TRExportMetadata trExportMetadata=new TRExportMetadata(); trExportMetadata.setDestinationType(((ExportMetadata)tMetadata).getDestinationType()); - trExportMetadata.setExportDate(((ExportMetadata)tMetadata).getExportDate()); + trExportMetadata.setExportDate(sdf.format(((ExportMetadata)tMetadata).getExportDate())); trExportMetadata.setUrl(((ExportMetadata)tMetadata).getUri()); listTRMetadata.add(trExportMetadata); }else{ if(tMetadata instanceof ImportMetadata){ TRImportMetadata trImportMetadata=new TRImportMetadata(); trImportMetadata.setSourceType(((ImportMetadata)tMetadata).getSourceType()); - trImportMetadata.setImportDate(((ImportMetadata)tMetadata).getImportDate()); + trImportMetadata.setImportDate(sdf.format(((ImportMetadata)tMetadata).getImportDate())); trImportMetadata.setUrl(((ImportMetadata)tMetadata).getUri()); listTRMetadata.add(trImportMetadata); }else{ diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRExportMetadata.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRExportMetadata.java index 4c69845..e7a4e04 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRExportMetadata.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRExportMetadata.java @@ -17,7 +17,7 @@ public class TRExportMetadata implements TRMetadata { private String destinationType; private String url; - private Date exportDate; + private String exportDate; public String getDestinationType() { return destinationType; @@ -31,10 +31,10 @@ public class TRExportMetadata implements TRMetadata { public void setUrl(String url) { this.url = url; } - public Date getExportDate() { + public String getExportDate() { return exportDate; } - public void setExportDate(Date exportDate) { + public void setExportDate(String exportDate) { this.exportDate = exportDate; } @Override diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRImportMetadata.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRImportMetadata.java index f8d5139..96d508c 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRImportMetadata.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRImportMetadata.java @@ -16,7 +16,7 @@ public class TRImportMetadata implements TRMetadata { private String sourceType; private String url; - private Date importDate; + private String importDate; public String getSourceType() { return sourceType; @@ -34,11 +34,11 @@ public class TRImportMetadata implements TRMetadata { this.url = url; } - public Date getImportDate() { + public String getImportDate() { return importDate; } - public void setImportDate(Date importDate) { + public void setImportDate(String importDate) { this.importDate = importDate; }