mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge branch 'master' into PHRAS-2741-worker-service-part1
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user