change unit of timestamp from second to millisecond