瀏覽代碼

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

shunf4 1 年之前
父節點
當前提交
669e644d81
共有 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()
         }