Copyright notice date {year} not rendering

I have a date/year in my footer that is supposed to update to the current year. It worked last year when I set it up, but it’s not working any more:

<p>&copy; Jeff Porter 2012–{{ config.extra.copyright | replace(from="{year}", to=now() | date(format="%Y")) }}</p>

Can anyone suggest a solution?

try © Jeff Porter 2012—{{now()|date(format=‘%Y’)}}

1 Like

Thank you. That works perfectly!