diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt index e1431350e..104dce34d 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt @@ -103,7 +103,7 @@ object TimeUtils { fun SkyBlockTime.formatted( dayAndMonthElement: Boolean = true, yearElement: Boolean = true, - hoursAndMinutesElement: Boolean = true + hoursAndMinutesElement: Boolean = true, ): String { val hour = (this.hour + 11) % 12 + 1 val timeOfDay = if (this.hour > 11) "pm" else "am" @@ -128,7 +128,7 @@ object TimeUtils { "$datePart, $timePart" } else { "$datePart$timePart".trim() - } + }, ) ?: "" } |