Which happens first? The daily upgrade or the midnight attack?
Title pretty much says it all. Which one takes place first? It would be pretty handy to know with the great pit upgrades and how much defense you need.
Solution 1:
From the help page:
Just before the midnight attack, the upgrade which has received the most votes is accepted and constructed immediately.
So, it happens before the attack, making the Great Pit upgrade useful if you need that one edge.
Solution 2:
The upgrades happen before the nightly attack, so you can count them in your defense estimate.
Disclaimer: This holds true for the german version of Die2Nite, I'm assuming it is the same for the english one