Issue #2249723 by andrei.dincu: Remove formBuilder->setErrorByName from forms and replace format_interval with date service function