Provided that HISTTIMEFORMAT has a non-null/non-zero value, temporarily unset it so it doesn't interfere with extracting command from history.