mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Fix database migration not working, display "N/A" if timestamp is not available
This commit is contained in:
1 parent
1d2c3c6d36
commit
55321fde1f
2 files changed
+74
-36
No files matched your search
@@ -71,6 +71,9 @@ public class SetPoint extends TeleportationPoint {
|
||||
* @return The formatted creation time string
|
||||
*/
|
||||
public String getFormattedCreationTime() {
|
||||
if (creationTime == 0) {
|
||||
return "N/A";
|
||||
}
|
||||
return DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.SHORT)
|
||||
.withLocale(Locale.getDefault())
|
||||
.withZone(ZoneId.systemDefault())
|
||||
|
||||
Reference in new issue
Block a user