pretty print date in face output

This commit is contained in:
Ruben 2016-09-19 00:56:38 +01:00
parent 06b541ca1e
commit 36a47aea44
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,8 @@
"gedmo/doctrine-extensions": "^2.4",
"symfony/serializer": "^3.1",
"cnam/security-jwt-service-provider": "2.*",
"jms/serializer": "^1.3"
"jms/serializer": "^1.3",
"danielstjules/php-pretty-datetime": "dev-master"
},
"autoload": {
"psr-4": {

View file

@ -271,7 +271,7 @@ echo "</div>"; // .mouth
echo "<div class='currentHit'>";
echo "<h3><span>last</span><span>vs</span><span>perfect</span></h3>";
echo "<p>{$currentHit->getGame()->getOriginalGameAt()}</p>";
echo "<p>".\PrettyDateTime\PrettyDateTime::parse($currentHit->getGame()->getOriginalGameAt())."</p>";
echo "<p>aim: {$currentHit->getTarget()->getScore()}% ".$currentHit->getTarget()->getEmotion()->getName()."</p>";
echo "<ul>";
$expressions = array_keys($currentHit->getExpressions()::$EXPRESSIONS_2ND_PERSON);