diff --git a/composer.json b/composer.json index 5447175..fcb5b96 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/www/faces3.php b/www/faces3.php index 7be8028..21f6f48 100644 --- a/www/faces3.php +++ b/www/faces3.php @@ -271,7 +271,7 @@ echo ""; // .mouth echo "
{$currentHit->getGame()->getOriginalGameAt()}
"; +echo "".\PrettyDateTime\PrettyDateTime::parse($currentHit->getGame()->getOriginalGameAt())."
"; echo "aim: {$currentHit->getTarget()->getScore()}% ".$currentHit->getTarget()->getEmotion()->getName()."
"; echo "