support millisecond datetime result
fix pack and unpack