瀏覽代碼

lint: Set locale

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 3 年之前
父節點
當前提交
c91631a642
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      app/src/main/java/com/nextcloud/talk/utils/LoggingUtils.kt
  2. 1 1
      scripts/analysis/lint-results.txt

+ 2 - 1
app/src/main/java/com/nextcloud/talk/utils/LoggingUtils.kt

@@ -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"
 

+ 1 - 1
scripts/analysis/lint-results.txt

@@ -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>