Skip to content

Commit a2ab04d

Browse files
committed
fix(android): normalize log timestamps to device local timezone in Logs screen
1 parent 2f21cd6 commit a2ab04d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

android/app/src/main/java/com/masterdns/vpn/util/VpnManager.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ object VpnManager {
241241
"yyyy-MM-dd'T'HH:mm:ss'Z'",
242242
"yyyy-MM-dd HH:mm:ss"
243243
),
244+
// Example: 2026/04/05 10:20:30
245+
Triple(
246+
Regex("^(\\d{4}/\\d{2}/\\d{2} \\d{2}:\\d{2}:\\d{2})(.*)$"),
247+
"yyyy/MM/dd HH:mm:ss",
248+
"yyyy/MM/dd HH:mm:ss"
249+
),
244250
// Example: 2026-04-05 10:20:30 UTC
245251
Triple(
246252
Regex("^(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2})\\s+UTC(.*)$"),

0 commit comments

Comments
 (0)