Skip to content

Commit

Permalink
ReportUtils: fixing datetime format; TODO about - vs : in time part
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Apr 11, 2022
1 parent 35733ef commit d3af562
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d3af562

Please sign in to comment.