Skip to content

Commit

Permalink
fix: wrong version code calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Nov 16, 2023
1 parent dbaffe4 commit 07115fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fun getBuildNumber(): Int {
val df = SimpleDateFormat("yyyyMMdd")
val date = LocalDateTime.now()
val seconds =
(Duration.between(date.withSecond(0).withMinute(0).withHour(0), date).seconds / 86400) * 99.0
(Duration.between(date.withSecond(0).withMinute(0).withHour(0), date).seconds / 86400.0) * 99.0
val twoDigitSuffix = seconds.toInt()

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

0 comments on commit 07115fc

Please sign in to comment.