Fixed invalid crash report filename

This commit is contained in:
Anuken 2018-01-03 10:15:27 -05:00
parent 5809c43516
commit 41a813ece3

View File

@ -109,7 +109,7 @@ public class DesktopLauncher {
String result = Strings.parseException(e, true);
boolean failed = false;
String filename = "crash-report-" + DateFormat.getDateTimeInstance().format(new Date()) + ".txt";
String filename = "crash-report-" + new SimpleDateFormat("dd-MM-yy h:mm:ss").format(new Date()) + ".txt";
try{
Files.write(Paths.get(filename), result.getBytes());