mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-22 23:09:49 -04:00
fix date, you had milliseconds before, so no need to divide by 1000 now.
This commit is contained in:
parent
16f9590768
commit
9caeee82c8
@ -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}"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user