Use system-default locale for logging

This commit is contained in:
Him188 2021-11-06 13:48:23 +00:00
parent 6b85dd536b
commit 7da6a50284
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ internal open class StdoutLogger constructor(
else debug(message.toString())
}
protected open val timeFormat: DateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.SIMPLIFIED_CHINESE)
protected open val timeFormat: DateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault())
private val currentTimeFormatted get() = timeFormat.format(Date())

View File

@ -106,7 +106,7 @@ public actual open class PlatformLogger constructor( // same as StdoutLogger bu
else debug(message.toString())
}
protected open val timeFormat: DateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.SIMPLIFIED_CHINESE)
protected open val timeFormat: DateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault())
private val currentTimeFormatted get() = timeFormat.format(Date())