Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: Fixes #1052 -- Added a 'weeks' fidelity to strings ret…

…urned by timesince()/timeutil().

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ea35b35a14f686e13e5484b4f0a2ca0fab8f51d2 1 parent f998c7b
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/utils/timesince.py
View
1  django/utils/timesince.py
@@ -11,6 +11,7 @@ def timesince(d, now=None):
chunks = (
(60 * 60 * 24 * 365, lambda n: ngettext('year', 'years', n)),
(60 * 60 * 24 * 30, lambda n: ngettext('month', 'months', n)),
+ (60 * 60 * 24 * 7, lambda n : ngettext('week', 'weeks', n)),
(60 * 60 * 24, lambda n : ngettext('day', 'days', n)),
(60 * 60, lambda n: ngettext('hour', 'hours', n)),
(60, lambda n: ngettext('minute', 'minutes', n))
Please sign in to comment.
Something went wrong with that request. Please try again.