xlab / at

AT is a framework written in Go for communication with AT-compatible devices like Huawei modems via serial port.
MIT License
120 stars 53 forks source link

Incorrect calculation of pdu datetime #13

Closed oxxxtor closed 5 years ago

oxxxtor commented 5 years ago

relates to issue #11

Datetime in PDU has a fixed structure (see GSM 03.**) and don't need to be procecced with EncodeSemi and DecodeSemi, because occurs the problem with negative time zone offsets. Encoding/Decoding datetime was replaced by a new code. This allowed to solve the problem of incorrect calculation of the time zone offset.

(now correct)