mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2026-05-09 18:11:26 +08:00
fix: correctly convert timezone offset from Java TimeZone.getRawOffset() to arg for golang time.FixedZone
This commit is contained in:
@@ -14,7 +14,7 @@ class TimeZoneModule(service: Service) : Module<Unit>(service) {
|
|||||||
while (true) {
|
while (true) {
|
||||||
val timeZone = TimeZone.getDefault()
|
val timeZone = TimeZone.getDefault()
|
||||||
|
|
||||||
Clash.notifyTimeZoneChanged(timeZone.id, timeZone.rawOffset)
|
Clash.notifyTimeZoneChanged(timeZone.id, timeZone.rawOffset / 1000)
|
||||||
|
|
||||||
timeZones.receive()
|
timeZones.receive()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user