We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbaffe4 commit 07115fcCopy full SHA for 07115fc
app/build.gradle.kts
@@ -18,7 +18,7 @@ fun getBuildNumber(): Int {
18
val df = SimpleDateFormat("yyyyMMdd")
19
val date = LocalDateTime.now()
20
val seconds =
21
- (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
22
val twoDigitSuffix = seconds.toInt()
23
24
return Integer.parseInt(df.format(Date()) + String.format("%02d", twoDigitSuffix))
0 commit comments