fix date, you had milliseconds before, so no need to divide by 1000 now.

This commit is contained in:
Jason Wall 2024-02-29 11:39:28 -05:00
parent 16f9590768
commit 9caeee82c8

View File

@ -1,6 +1,4 @@
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import java.time.temporal.ChronoUnit
apply plugin: 'com.android.application'
@ -113,6 +111,6 @@ static def getPrettyDate() {
static def getDate() {
def startTime = LocalDateTime.of(2020, 1, 1, 0, 0) // this is the time all the versions are based from.
def seconds = Math.round(startTime.until(LocalDateTime.now(), ChronoUnit.SECONDS) / 1000) // seconds since the start time
def seconds = startTime.until(LocalDateTime.now(), ChronoUnit.SECONDS) // seconds since the start time
return "${seconds}"
}