tokens: He served as an intelligence briefing officer for a dive bomber squadron in the Solomon Islands and Bougainville for 30 months ( August 1942 – February 1945 ) , and held the rank of captain by the time he resigned his commission in April 1945 .