Skip to content

Commit

Permalink
优化:receive_time取手机系统的默认时区
Browse files Browse the repository at this point in the history
  • Loading branch information
pppscn committed Feb 2, 2024
1 parent 9c11bc5 commit 44ab934
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ class WebhookUtils {
fun formatDateTime(currentTime: Date, format: String?): String {
val actualFormat = format?.removePrefix(":") ?: "yyyy-MM-dd HH:mm:ss"
val dateFormat = SimpleDateFormat(actualFormat)
dateFormat.timeZone = TimeZone.getTimeZone("UTC")
return dateFormat.format(currentTime)
}

Expand Down

0 comments on commit 44ab934

Please sign in to comment.