Fix timestamp decoding issue