YEAR variable in custom template

Hello,
I’ve migrated from Gogs to Gitea 1.24.5.
As per instruction at Template Repositories | Gitea Documentation it is possible to insert current year value in custom template.
I tested the format {${YEAR}} and {{$YEAR}} but without success.
In Gogs it was possible to use the Year function, but Gitea returns an error.

How can I insert the value of current year inside a custom template ?

Thank you