Update auto-fill

This commit is contained in:
Karlatemp 2020-06-22 12:30:36 +08:00
parent 4f418e7a0b
commit b3f846ed16
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -85,7 +85,7 @@ tasks {
file.writeText(file.readText()
.replace(Regex("""val buildDate: Date = Date\((.*)\) //(.*)""")) {
"""
val buildDate: Date = Date(${System.currentTimeMillis()}) // ${SimpleDateFormat("yyyy-MM-dd HH:mm:ss").apply {
val buildDate: Date = Date(${System.currentTimeMillis()}L) // ${SimpleDateFormat("yyyy-MM-dd HH:mm:ss").apply {
timeZone = TimeZone.getTimeZone("GMT+8")
}.format(Date())}
""".trimIndent()