优化:`receive_time`取手机系统的默认时区

This commit is contained in:
pppscn 2024-02-02 22:08:33 +08:00
parent 9c11bc5b9b
commit 44ab934873
1 changed files with 0 additions and 1 deletions

View File

@ -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)
}