From 447711e995a7cca28c0a0029953c158debc84bb0 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Thu, 9 Jul 2015 23:23:44 -0700 Subject: [PATCH] Blog current year --- rophako/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rophako/settings.py b/rophako/settings.py index cbb2fe9..3491357 100644 --- a/rophako/settings.py +++ b/rophako/settings.py @@ -29,6 +29,9 @@ class ConfigHandler(object): basedir=basedir ) self.photo.root_private = self.photo.root_private.format(basedir=basedir) + self.blog.copyright = self.blog.copyright.format( + year=datetime.datetime.utcnow().strftime("%Y") + ) def print_settings(self): """Pretty-print the contents of the configuration."""