britram / python-ipfix

IPFIX implementation for Python 3.x
GNU Lesser General Public License v3.0
40 stars 20 forks source link

Fix NTP timestamp handling to use the correct epoch date. #18

Closed md5i closed 6 years ago

md5i commented 8 years ago

Unix times use Jan 1, 1970 as their epoch date. NTP times use Jan 1, 1900 as their epoch date. Change _encode_ntp() and _decode_ntp() to use the NTP epoch date instead of the Unix epoch date.