Fix database migration not working, display "N/A" if timestamp is not available

This commit is contained in:
William committed 2021-08-28 00:55:19 +01:00
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())