mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Changed timestamp in logs to ISO standard datetime format
This commit is contained in:
parent
7d79c9a82a
commit
79c69e3d43
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ import java.util.*
|
||||||
object SystemLogger {
|
object SystemLogger {
|
||||||
val t = Terminal()
|
val t = Terminal()
|
||||||
val errT = t.forStdErr()
|
val errT = t.forStdErr()
|
||||||
val formatter = SimpleDateFormat("HH:mm:ss")
|
val formatter = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXX")
|
||||||
|
|
||||||
private fun getTime(): String{
|
private fun getTime(): String{
|
||||||
return "[" + formatter.format(Date(System.currentTimeMillis())) +"]"
|
return "[" + formatter.format(Date(System.currentTimeMillis())) +"]"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue