Fixed #17255 -- Removed "as" prefix from new timezone template filter names for the sake of clarity. Cheers to Aymeric Augustin for bearing with me.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-11-18 15:00:08 +00:00
parent 9b1cb755a2
commit 6f66b55108
9 changed files with 54 additions and 40 deletions

View file

@ -17,7 +17,7 @@ from django.conf import settings
__all__ = [
'utc', 'get_default_timezone', 'get_current_timezone',
'activate', 'deactivate', 'override',
'aslocaltime', 'isnaive',
'localtime', 'isnaive',
]
@ -198,7 +198,7 @@ class override(object):
# Utilities
def aslocaltime(value, use_tz=None):
def localtime(value, use_tz=None):
"""
Checks if value is a datetime and converts it to local time if necessary.