diff --git a/ipfix/interpret.go b/ipfix/interpret.go index 515a2703..1001f4d6 100644 --- a/ipfix/interpret.go +++ b/ipfix/interpret.go @@ -63,8 +63,10 @@ func Interpret(b *[]byte, t FieldType) interface{} { return string(*b) case Ipv4Address, Ipv6Address: return net.IP(*b) - case DateTimeSeconds, DateTimeMilliseconds, DateTimeMicroseconds, DateTimeNanoseconds: - return int64(binary.BigEndian.Uint64(*b)) + case DateTimeSeconds: + return binary.BigEndian.Uint32(*b) + case DateTimeMilliseconds, DateTimeMicroseconds, DateTimeNanoseconds: + return binary.BigEndian.Uint64(*b) case Unknown, OctetArray: return *b }