Fix another Exception in Backup engine

This commit is contained in:
Marc Baloup 2022-12-14 19:05:24 +01:00
parent 116b1d510c
commit 0d94361d38
Signed by: marcbal
GPG Key ID: BBC0FE3ABC30B893

View File

@ -14,6 +14,7 @@ import org.bukkit.ChatColor;
import java.io.File;
import java.text.DateFormat;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
import java.time.temporal.ChronoField;
@ -161,8 +162,7 @@ public abstract class CompressProcess implements Comparable<CompressProcess>, Ru
private String getDateFileName() {
Calendar calendar = Calendar.getInstance();
return dateFileNameFormatter.format(calendar.toInstant());
return dateFileNameFormatter.format(ZonedDateTime.now());
}