diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index b055ef4a7d0601ce9494bdc19a1e412b9585a8c3..d6f4d836caa7f2576281d3bec41b8fc9b6c3f5e0 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -434,6 +434,8 @@ class Template extends Response
         if (!isset($this->data['pagetitle'])) {
             $this->data['pagetitle'] = 'SimpleSAMLphp';
         }
+
+        $this->data['year'] = date('Y');
     }
 
 
diff --git a/templates/_footer.twig b/templates/_footer.twig
index 432e1daef212cf028e84b84318bf77fe0a9f4dc5..505b01e534966e8d488568bb3ee524af297a8df4 100644
--- a/templates/_footer.twig
+++ b/templates/_footer.twig
@@ -1,13 +1,13 @@
-        <div id="footer">
-            <div class="wrap">
-                <div class="center copyrights dark-bg">
-                    <br>Copyright © 2007-2018
-                    <a href="https://simplesamlphp.org/">SimpleSAMLphp</a>
-                </div>
-                <div class="logo-footer-right">
-                    <div class="logo-footer">
-                        <img class="pure-img" src="/{{ baseurlpath }}resources/icons/ssplogo-fish-small.png" alt="Small fish logo">
-                    </div>
-                </div>
+      <div id="footer">
+        <div class="wrap">
+          <div class="center copyrights dark-bg">
+            <br>Copyright © 2007-{{ year }}
+            <a href="https://simplesamlphp.org/">SimpleSAMLphp</a>
+          </div>
+          <div class="logo-footer-right">
+            <div class="logo-footer">
+              <img class="pure-img" src="/{{ baseurlpath }}resources/icons/ssplogo-fish-small.png" alt="Small fish logo">
             </div>
+          </div>
         </div>
+      </div>