As requested :)
When you create a LaTeX counter, you give a "symbolic" name. For example, \newcounter{year} gives access to a counter register that can be accessed with \c@year. So when you use \setcounter{year}, the counter used is \c@year.
\year, as well as \month, \day, and \time are primitive counter registers (i.e.: not allocated with \newcount nor accessible with \count<n>), and you cannot use them with LaTeX counters. So to change their value you have to use TeX's syntax:
\year=2017
For example, if you compile this document:
\documentclass{article}
\begin{document}
\year=2017
\today
\end{document}
you'll have today's date, but a year back.
But these counters are expected to contain the current date so, as egreg said in his comment, "Leave \year alone". For example, the LaTeX kernel contains a check to see if the version is more than 5 year old (disabled). Other packages may rely on something similar, so it would be better not to do it.
\yearis a counter register. Just do\year=2017and it will work. Try this:\documentclass{article} \begin{document} \year=2017 \today \end{document}– Phelype Oleinik Apr 26 '18 at 23:47setcounter. – Sigur Apr 26 '18 at 23:59\yearalone. – egreg Apr 27 '18 at 08:24\setcounteronly works if the counter was created with\newcounter. When you do\newcounter{year}, for example, the counter register created is\c@year. That's why\setcounterdidn't work. Following egreg's advice you could create a\newcounter{year}, then\setcounter{year}{\year}, or\setcounter{year}{2017}, then use\theyearinstead (of course this would require some find/replace). – Phelype Oleinik Apr 27 '18 at 11:07\yearbecause I supposed that it would be more professional. Now it is first time I have to change the year date to fix something. I'll consider to update the template soon. Regards. – Sigur Apr 27 '18 at 11:33