mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-19 23:09:14 +00:00
fix: DateTimeException when running /userdata
This commit is contained in:
@@ -56,7 +56,7 @@ public class DataSnapshotList {
|
|||||||
snapshot.getTimestamp().format(DateTimeFormatter
|
snapshot.getTimestamp().format(DateTimeFormatter
|
||||||
.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.SHORT)),
|
.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.SHORT)),
|
||||||
snapshot.getTimestamp().format(DateTimeFormatter
|
snapshot.getTimestamp().format(DateTimeFormatter
|
||||||
.ofLocalizedDateTime(FormatStyle.LONG, FormatStyle.LONG)),
|
.ofLocalizedDateTime(FormatStyle.LONG, FormatStyle.MEDIUM)),
|
||||||
snapshot.getSaveCause().getLocale(plugin),
|
snapshot.getSaveCause().getLocale(plugin),
|
||||||
String.format("%.2fKiB", snapshot.getFileSize(plugin) / 1024f))
|
String.format("%.2fKiB", snapshot.getFileSize(plugin) / 1024f))
|
||||||
.orElse("• " + snapshot.getId())).toList(),
|
.orElse("• " + snapshot.getId())).toList(),
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public class DataSnapshotOverview {
|
|||||||
.ifPresent(user::sendMessage);
|
.ifPresent(user::sendMessage);
|
||||||
locales.getLocale("data_manager_timestamp",
|
locales.getLocale("data_manager_timestamp",
|
||||||
snapshot.getTimestamp().format(DateTimeFormatter
|
snapshot.getTimestamp().format(DateTimeFormatter
|
||||||
.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.LONG)),
|
.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.SHORT)),
|
||||||
snapshot.getTimestamp().toString())
|
snapshot.getTimestamp().toString())
|
||||||
.ifPresent(user::sendMessage);
|
.ifPresent(user::sendMessage);
|
||||||
if (snapshot.isPinned()) {
|
if (snapshot.isPinned()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user