mirror of
https://github.com/django/django.git
synced 2025-07-23 05:05:17 +00:00
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:
parent
9b1cb755a2
commit
6f66b55108
9 changed files with 54 additions and 40 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue