Ticket #3556: defaultfilters.py.diff

File defaultfilters.py.diff, 562 bytes (added by ludvig.ericson@…, 18 years ago)

Patch for defaultfilters.py

  • defaultfilters.py

    old new  
    368368    if not value:
    369369        return ''
    370370    if arg is None:
    371         arg = settings.DATE_FORMAT
     371        arg = _("DATE_FORMAT")
    372372    return format(value, arg)
    373373
    374374def time(value, arg=None):
     
    377377    if value in (None, ''):
    378378        return ''
    379379    if arg is None:
    380         arg = settings.TIME_FORMAT
     380        arg = _("TIME_FORMAT")
    381381    return time_format(value, arg)
    382382
    383383def timesince(value, arg=None):
Back to Top