Fix another Exception in Backup engine
This commit is contained in:
parent
116b1d510c
commit
0d94361d38
@ -14,6 +14,7 @@ import org.bukkit.ChatColor;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
|
import java.time.ZonedDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.time.format.DateTimeFormatterBuilder;
|
import java.time.format.DateTimeFormatterBuilder;
|
||||||
import java.time.temporal.ChronoField;
|
import java.time.temporal.ChronoField;
|
||||||
@ -161,8 +162,7 @@ public abstract class CompressProcess implements Comparable<CompressProcess>, Ru
|
|||||||
|
|
||||||
|
|
||||||
private String getDateFileName() {
|
private String getDateFileName() {
|
||||||
Calendar calendar = Calendar.getInstance();
|
return dateFileNameFormatter.format(ZonedDateTime.now());
|
||||||
return dateFileNameFormatter.format(calendar.toInstant());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user