Skip to content

Commit

Permalink
adding '.SSS' to basic name of retport output
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Apr 24, 2019
1 parent 6de6863 commit 341dd50
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -508,7 +508,7 @@ private Exporter createExporter(ExportType type, JasperPrint jasperPrint, String

public static String getDateTime() {
Date createDate = new Date(System.currentTimeMillis());
SimpleDateFormat formatDate = new SimpleDateFormat("dd-MM-yyyy hh-mm-ss");
SimpleDateFormat formatDate = new SimpleDateFormat("dd-MM-yyyy hh-mm-ss.SSS");
return formatDate.format(createDate);
}

Expand All @@ -519,13 +519,12 @@ protected String getDestinationFileName(ReportType reportType) {
}

String output = EXPORT_DIR + reportType.getName().getOrig() + " " + getDateTime();

if (getExport(reportType) == ExportType.XML_EMBED) {
return output + "_embed.xml";
}
}

return output + "." + getExport(reportType).value();

}

protected void saveReportOutputType(String filePath, ReportType reportType, Task task, OperationResult parentResult) throws Exception {
Expand Down

0 comments on commit 341dd50

Please sign in to comment.