Skip to content

Commit 7ab1862

Browse files
committedSep 20, 2015
Fix #2104 -- fix post-list date formatting
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 1a4cd48 commit 7ab1862

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

Diff for: ‎CHANGES.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
New in Master
1+
New in master
22
=============
33

44
Features
@@ -7,6 +7,7 @@ Features
77
Bugfixes
88
--------
99

10+
* Fix reST post list date formatting error (Issue #2104)
1011
* /robots.txt was never being built (Issue #2098)
1112

1213
New in v7.7.1

Diff for: ‎nikola/plugins/compile/rest/post_list.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def run(self):
204204
template_data = {
205205
'lang': lang,
206206
'posts': posts,
207-
'date_format': self.site.GLOBAL_CONTEXT.get('date_format'),
207+
# Need to provide str, not TranslatableSetting (Issue #2104)
208+
'date_format': self.site.GLOBAL_CONTEXT.get('date_format')[lang],
208209
'post_list_id': post_list_id,
209210
}
210211
output = self.site.template_system.render_template(

0 commit comments

Comments
 (0)
Please sign in to comment.