The shortest recorded war lasted less than an hour
The Anglo-Zanzibar War on August 27, 1896, is commonly recorded as lasting between 38 and 45 minutes.

Why it is true
The conflict began after an ultimatum expired and British ships opened fire on the palace in Zanzibar. The palace flag was lowered shortly afterward, ending organized resistance.
Check the source
We keep the original reference beside the claim so you can inspect the evidence and surrounding context yourself.
Open Guinness World Records