Merge branch 'master' into PHRAS-2741-worker-service-part1

This commit is contained in:
Nicolas Maillat
2020-03-18 00:37:29 +01:00
committed by GitHub
34 changed files with 829 additions and 270 deletions

View File

@@ -120,6 +120,16 @@ class phraseadate
}
}
public function getTranslatedDate(DateTime $date = null)
{
$fmt = new IntlDateFormatter(
$this->app['locale'] ?: 'en',
NULL, NULL, NULL, NULL, 'dd MMMM yyyy'
);
return $fmt->format($date);
}
/**
*
* @param DateTime $date