Explorar el Código

Merge pull request #194 from shunf4/fix/bad_tz_override

fix: correctly convert timezone offset from Java TimeZone.getRawOffset() to arg for golang time.FixedZone
Larvan2 hace 1 año
padre
commit
436f8600d2

+ 1 - 1
service/src/main/java/com/github/kr328/clash/service/clash/module/TimeZoneModule.kt

@@ -14,7 +14,7 @@ class TimeZoneModule(service: Service) : Module<Unit>(service) {
         while (true) {
             val timeZone = TimeZone.getDefault()
 
-            Clash.notifyTimeZoneChanged(timeZone.id, timeZone.rawOffset)
+            Clash.notifyTimeZoneChanged(timeZone.id, timeZone.rawOffset / 1000)
 
             timeZones.receive()
         }