fix second/millisecond issue