Skip to content

Commit

Permalink
fix: capped out long breaks the code, so using milliseconds now
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicMushroom committed Jan 27, 2024
1 parent 74db9ca commit 2d17c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/src/main/kotlin/me/melijn/bot/utils/TimeUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object TimeUtil {

return LocalDateTime(
LocalDate.fromEpochDays(this.date.toEpochDays() + extraDays),
LocalTime.fromNanosecondOfDay(newTimeDuration.inWholeNanoseconds)
LocalTime.fromMillisecondOfDay(newTimeDuration.inWholeMilliseconds.toInt())
)
}

Expand Down

0 comments on commit 2d17c69

Please sign in to comment.