Japan surrendered on August 15 , 1945 , ending World War II .