From 07115fcab86808ebae870400a3e54fd01a5b95db Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Thu, 16 Nov 2023 15:54:02 +0000 Subject: [PATCH] fix: wrong version code calculation --- app/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 2744a86..b42bffb 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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))