fixed a bug:changed t->TimeOf twice