Skip to content

Commit bc62f7e

Browse files
authored
Merge pull request #41 from crisp5/date-diff-365days-patch
2 parents fea7175 + bbaf172 commit bc62f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

feature/datecalculator/src/main/java/app/myzel394/numberhub/feature/datecalculator/difference/ZonedDateTimeDifference.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ internal fun ZonedDateTime.minus(
112112
)
113113
}
114114

115-
private val yearInSeconds by lazy { BigDecimal("31104000") }
115+
private val yearInSeconds by lazy { BigDecimal("31536000") }
116116
private val monthsInSeconds by lazy { BigDecimal("2592000") }
117117
private val dayInSeconds by lazy { BigDecimal("86400") }
118118
private val hourInSeconds by lazy { BigDecimal("3600") }

0 commit comments

Comments
 (0)