

@jinja2.contextfilter
def format_datetime(ctx, *args, **kwargs):
    request = (ctx.get('request') or get_current_request())
    kwargs.setdefault('locale', request.locale)
    return babel.dates.format_datetime(*args, **kwargs)

dataset/ETHPy150Open pypa/warehouse/warehouse/i18n/filters.py format_datetime/original