From 314ec90b41416db6c87da2bb29ca891f2c45c1b0 Mon Sep 17 00:00:00 2001 From: Richard Richter Date: Thu, 7 Apr 2022 13:08:49 +0200 Subject: [PATCH] ReportUtils: fixing datetime format; TODO about - vs : in time part --- .../java/com/evolveum/midpoint/report/impl/ReportUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/ReportUtils.java b/model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/ReportUtils.java index aacb30db40d..9e865cd7cb9 100644 --- a/model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/ReportUtils.java +++ b/model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/ReportUtils.java @@ -170,7 +170,8 @@ public static String prettyPrintForReport(Date date) { public static String getDateTime() { Date createDate = new Date(System.currentTimeMillis()); - SimpleDateFormat formatDate = new SimpleDateFormat("dd-MM-yyyy hh-mm-ss"); + // TODO: reconsider the time part with -, this is good for file names, but for printing : would be better + SimpleDateFormat formatDate = new SimpleDateFormat("dd-MM-yyyy HH-mm-ss"); return formatDate.format(createDate); }