Skip to content

Commit

Permalink
fix: 时间小时格式
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon406 committed Sep 5, 2021
1 parent d071ae2 commit ca4da87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/me/leon/ext/Times.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

fun times() =
LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss")) ?: "unknown"
LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) ?: "unknown"

0 comments on commit ca4da87

Please sign in to comment.