Skip to content

Commit 07115fc

Browse files
committed
fix: wrong version code calculation
1 parent dbaffe4 commit 07115fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fun getBuildNumber(): Int {
1818
val df = SimpleDateFormat("yyyyMMdd")
1919
val date = LocalDateTime.now()
2020
val seconds =
21-
(Duration.between(date.withSecond(0).withMinute(0).withHour(0), date).seconds / 86400) * 99.0
21+
(Duration.between(date.withSecond(0).withMinute(0).withHour(0), date).seconds / 86400.0) * 99.0
2222
val twoDigitSuffix = seconds.toInt()
2323

2424
return Integer.parseInt(df.format(Date()) + String.format("%02d", twoDigitSuffix))

0 commit comments

Comments
 (0)