diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt index 58bdb2d77..5e8c0b41c 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt @@ -135,7 +135,7 @@ object TimeUtils { yearElement: Boolean = true, hoursAndMinutesElement: Boolean = true ): String { - val hour = if (this.hour > 12) this.hour - 12 else this.hour + val hour = (this.hour + 11) % 12 + 1 val timeOfDay = if (this.hour > 11) "pm" else "am" val minute = this.minute.toString().padStart(2, '0') val month = SkyBlockTime.monthName(this.month) |