NarrativeWeb : gen.lib.date problem

svn: r12502
This commit is contained in:
Serge Noiraud 2009-05-01 20:25:08 +00:00
parent 2fe74e2ca6
commit 6efffe78c2

View File

@ -393,7 +393,7 @@ class BasePage:
text = '' text = ''
if copy_nr == 0: if copy_nr == 0:
if self.author: if self.author:
year = time.localtime()[0] year = date.Today().get_year()
text = '© %(year)d %(person)s' % { text = '© %(year)d %(person)s' % {
'person' : self.author, 'person' : self.author,
'year' : year} 'year' : year}