An Iowa man who had a hunting rifle, ammunition and a knife in his car when he approached a Secret Service post near the White House and said he had an appointment with the president will spend a year on probation.

R.J. Kapheim of Davenport has been in jail since his arrest in November. He pleaded guilty to misdemeanor charges of possessing an unregistered firearm and ammunition. A D.C. Superior Court judge sentenced him Thursday to a year in jail but suspended the sentence on the condition Kapheim successfully completes probation.

Court documents show Kapheim approached a Secret Service post on Nov. 19 and said he had an appointment with the president, though he did not. Kapheim showed officers to his nearby car and let them search it.