Ticket #3556: defaultfilters.py.diff
File defaultfilters.py.diff, 562 bytes (added by , 18 years ago) |
---|
-
defaultfilters.py
old new 368 368 if not value: 369 369 return '' 370 370 if arg is None: 371 arg = settings.DATE_FORMAT371 arg = _("DATE_FORMAT") 372 372 return format(value, arg) 373 373 374 374 def time(value, arg=None): … … 377 377 if value in (None, ''): 378 378 return '' 379 379 if arg is None: 380 arg = settings.TIME_FORMAT380 arg = _("TIME_FORMAT") 381 381 return time_format(value, arg) 382 382 383 383 def timesince(value, arg=None):