mirror of
https://github.com/pppscn/SmsForwarder
synced 2025-08-03 01:17:41 +08:00
优化:receive_time
取手机系统的默认时区
This commit is contained in:
parent
9c11bc5b9b
commit
44ab934873
@ -217,7 +217,6 @@ class WebhookUtils {
|
|||||||
fun formatDateTime(currentTime: Date, format: String?): String {
|
fun formatDateTime(currentTime: Date, format: String?): String {
|
||||||
val actualFormat = format?.removePrefix(":") ?: "yyyy-MM-dd HH:mm:ss"
|
val actualFormat = format?.removePrefix(":") ?: "yyyy-MM-dd HH:mm:ss"
|
||||||
val dateFormat = SimpleDateFormat(actualFormat)
|
val dateFormat = SimpleDateFormat(actualFormat)
|
||||||
dateFormat.timeZone = TimeZone.getTimeZone("UTC")
|
|
||||||
return dateFormat.format(currentTime)
|
return dateFormat.format(currentTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user