Kaynağa Gözat

Fix log time

Him188 5 yıl önce
ebeveyn
işleme
2dcd8ffea0

+ 1 - 1
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/PlatformLogger.jvm.kt

@@ -90,7 +90,7 @@ actual open class PlatformLogger @JvmOverloads constructor(
     }
 
     private val timeFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.SIMPLIFIED_CHINESE)
-    private val currentTimeFormatted = timeFormat.format(Date())
+    private val currentTimeFormatted get() = timeFormat.format(Date())
 
     /**
      * @author NaturalHG