LocalDate
class LocalDate extends BaseFilter
LocalDate provides the 'localDate' twig filter.
Local dates are converted the the site's local timezone, not the user's.
{{ 'now'|localDate('m/d/y g:ia') }}
Methods
string
getFilterName()
Return the filter name
string
handle(mixed $time, string $format = 'c')
Handle filter response
Details
in BaseFilter at line 13
__construct()
in BaseFilter at line 22
getFilterOptions()
in BaseFilter at line 31
object
getDI()
Return default dependency injector
at line 21
string
getFilterName()
Return the filter name
at line 32
string
handle(mixed $time, string $format = 'c')
Handle filter response