fix a serilization bug - be able to serialize time