Skip to content

Commit

Permalink
[#2375] Fix wrong month in locale date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 9, 2012
1 parent b754828 commit c886f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/formatters.py
Expand Up @@ -93,7 +93,7 @@ def localised_nice_date(datetime_):
month = datetime_.month
day = datetime_.day
year = datetime_.year
month_name = MONTH_FUNCTIONS[month]()
month_name = MONTH_FUNCTIONS[month - 1]()
return _('{month} {day}, {year}').format(month=month_name, day=day,
year=year)

Expand Down

0 comments on commit c886f02

Please sign in to comment.