refine timestamp