Not sure about the specific case, but a smart contract can decide based on the time a tx is included in a block if a call is valid or not.
I meant more-so on the frontend side, like the "Ended" card here https://nouns.wtf/vote/217 I'm pretty sure the on-chain vote actually ended ~1 hour after the stated time