mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-10 03:49:46 +00:00
5758be0334
Commits -------ae85586Add docs for date_modify0366cf6Fix docs of date filter Discussion ---------- Date modify filter This is probably possible via `date(foo)|modify('-1day')|format()`, but it's non obvious and a dedicated filter might be a bit more prominent. --------------------------------------------------------------------------- by fabpot at 2012-06-22T07:01:32Z Just a quick thought: As it modifies the date, it should probably be a function, not a filter. --------------------------------------------------------------------------- by stof at 2012-06-22T07:24:52Z @fabpot Aren't filters meant to transform the value ?