Davis was appointed president of the Confederacy in February 1861. Sumter was fired on in April 1861.
And the Capitol was in Montgomery at that time. Later moved to Richmond.