Sfoglia il codice sorgente

Expose the time a package is created via the JSON API

ajshort 12 anni fa
parent
commit
e23dd2d380
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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(),