fix: correctly convert timezone offset from Java TimeZone.getRawOffset() to arg for golang time.FixedZone

This commit is contained in:
shunf4 2024-03-17 18:26:51 +08:00
parent 346096aab7
commit 669e644d81

View File

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