Fix time cmd length bug and adjust time byte order