“Was that taken today?”
No. April, 2011. Note Petraeus was in his military uniform. He retired from the military to take over the CIA.
http://www.wbur.org/npr/135810669/obama-makes-it-official-panetta-to-defense-petraeus-to-cia
“US President Barack Obama announces that he will nominate (from left to right) Leon Panetta as Secretary of Defense; General David Petraeus as the next director of the CIA; General John Allen as commander for U.S. forces in Afghanistan, and Ryan Crocker as the U.S. ambassador to Afghanistan. (AFP/Getty Images)”
Thanks for clearing the date and occasion for us.