If you dynamically set this to the current year, you’re doing it wrong.
The copyright notice is there to indicate when the copyright started; i.e. when the creative work was first fixed into a tangible medium. If you created something in 2020 and you tell people that it’s copyright 2021, you are in essence cheating to get an extra year of the already absurdly long copyright period. If you created something in 2020 and then modified it in 2021, then use a range of 2020–2021.
The copyright notice is not there to tell you what the current year is. What would the point of that be? Everybody knows what the current year is.