소스 검색

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 1 년 전
부모
커밋
436f8600d2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      service/src/main/java/com/github/kr328/clash/service/clash/module/TimeZoneModule.kt

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