优化:`receive_time`取手机系统的默认时区
This commit is contained in:
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…
Reference in New Issue