Skip to content

Commit

Permalink
Merge pull request #3 from Leon406/dev
Browse files Browse the repository at this point in the history
fix: 时间小时格式
  • Loading branch information
Leon406 committed Sep 5, 2021
2 parents 7d9e017 + ca4da87 commit bdf4970
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 bdf4970

Please sign in to comment.