lint: Set locale

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-05-09 21:56:13 +02:00
parent ef273cf9ff
commit c91631a642
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 3 additions and 2 deletions

View File

@ -30,10 +30,11 @@ import java.io.FileNotFoundException
import java.io.IOException
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
object LoggingUtils {
fun writeLogEntryToFile(context: Context, logEntry: String) {
val dateFormat = SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
val dateFormat = SimpleDateFormat("yyyy/MM/dd HH:mm:ss", Locale.ROOT)
val date = Date()
val logEntryWithDateTime = dateFormat.format(date) + ": " + logEntry + "\n"

View File

@ -1,2 +1,2 @@
DO NOT TOUCH; GENERATED BY DRONE
<span class="mdl-layout-title">Lint Report: 3 errors and 347 warnings</span>
<span class="mdl-layout-title">Lint Report: 3 errors and 346 warnings</span>