Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Homepage|Build Repository: Added "release_date" to the package JSON o…
…bject graph

If a release date is known for a package, include it in the JSON
object graph representation as "release_date" (string, RFC1123).
  • Loading branch information
danij-deng committed Sep 24, 2012
1 parent 0b9db08 commit 084fa02
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -78,6 +78,9 @@ public function populateGraphTemplate(&$tpl)
if($this->hasReleaseNotesUri())
$tpl['release_notesuri'] = $this->releaseNotesUri;

if($this->hasReleaseDate())
$tpl['release_date'] = date(DATE_RFC1123, $this->releaseDate);

if($this->hasCompileLogUri())
$tpl['compile_loguri'] = $this->compileLogUri;

Expand Down

0 comments on commit 084fa02

Please sign in to comment.