forked from Elara6331/infinitime
nicer code
This commit is contained in:
parent
e10697448c
commit
ee06b34281
@ -725,7 +725,7 @@ func (i *Device) SetTimezone(t time.Time) error {
|
||||
dst := 0
|
||||
if t.IsDST() {
|
||||
dst = 3600
|
||||
offset = offset - 3600
|
||||
offset -= 3600
|
||||
}
|
||||
buf := &bytes.Buffer{}
|
||||
binary.Write(buf, binary.LittleEndian, uint8(offset / 3600 * 4))
|
||||
|
Loading…
Reference in New Issue
Block a user