Merge pull request #41 from crisp5/date-diff-365days-patch

This commit is contained in:
Myzel394 2024-10-23 20:23:45 +02:00 committed by GitHub
commit bc62f7ec98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,7 @@ internal fun ZonedDateTime.minus(
) )
} }
private val yearInSeconds by lazy { BigDecimal("31104000") } private val yearInSeconds by lazy { BigDecimal("31536000") }
private val monthsInSeconds by lazy { BigDecimal("2592000") } private val monthsInSeconds by lazy { BigDecimal("2592000") }
private val dayInSeconds by lazy { BigDecimal("86400") } private val dayInSeconds by lazy { BigDecimal("86400") }
private val hourInSeconds by lazy { BigDecimal("3600") } private val hourInSeconds by lazy { BigDecimal("3600") }