Browse Source

Expose the time a package is created via the JSON API

ajshort 12 years ago
parent
commit
e23dd2d380
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Packagist/WebBundle/Entity/Package.php

+ 1 - 0
src/Packagist/WebBundle/Entity/Package.php

@@ -145,6 +145,7 @@ class Package
         $data = array(
             'name' => $this->getName(),
             'description' => $this->getDescription(),
+            'time' => $this->getCreatedAt()->format('c'),
             'maintainers' => $maintainers,
             'versions' => $versions,
             'type' => $this->getType(),