update timestamp to ms