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

pull/408/head
pppscn 8 months ago
parent 9c11bc5b9b
commit 44ab934873

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

Loading…
Cancel
Save