added local time characteristic #4
@ -725,7 +725,7 @@ func (i *Device) SetTimezone(t time.Time) error {
|
|||||||
dst := 0
|
dst := 0
|
||||||
if t.IsDST() {
|
if t.IsDST() {
|
||||||
dst = 3600
|
dst = 3600
|
||||||
offset = offset - 3600
|
offset -= 3600
|
||||||
}
|
}
|
||||||
buf := &bytes.Buffer{}
|
buf := &bytes.Buffer{}
|
||||||
binary.Write(buf, binary.LittleEndian, uint8(offset / 3600 * 4))
|
binary.Write(buf, binary.LittleEndian, uint8(offset / 3600 * 4))
|
||||||
|
Reference in New Issue
Block a user