diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 8ba519efa2e..918a1ca2d71 100755 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -82,7 +82,7 @@
  • Aarhus Universitet
  • Karl-Franzens-Universität Graz
  • -

    © Copyright 2012-2020, MNE Developers. Last updated on 2020-03-27.

    +

    © Copyright {{ copyright }}

    diff --git a/doc/conf.py b/doc/conf.py index 204dc860f2b..18807b3f31f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -12,7 +12,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -from datetime import date +from datetime import datetime, timezone from distutils.version import LooseVersion import gc import os @@ -104,9 +104,13 @@ # General information about the project. project = u'MNE' -td = date.today() -copyright = u'2012-%s, MNE Developers. Last updated on %s' % (td.year, - td.isoformat()) +td = datetime.now(tz=timezone.utc) +copyright = ( + '2012-%(year)s, MNE Developers. Last updated ' + '\n' + '' # noqa: E501 +) % dict(year=td.year, iso=td.isoformat(), + short=td.strftime('%Y-%m-%d %H:%M %Z')) nitpicky = True nitpick_ignore = [