Build fix. Use POSIX timestamp instead of human readable string for the commit time.
[WebKit-https.git] / Websites / perf.webkit.org / public / include / build-requests-fetcher.php
index 5dd9751cea1526c3bf94f6504f6b0e6f8c3a2803..f7b0d6393830c49905729d7837cdd900e61464f8 100644 (file)
@@ -93,10 +93,12 @@ class BuildRequestsFetcher {
         foreach ($root_rows as $row) {
             $repository = $row['repository_id'];
             $revision = $row['commit_revision'];
+            $commit_time = $row['commit_time'];
             $root_id = $root_set_id . '-' . $repository;
             array_push($root_ids, $root_id);
             array_push($this->roots, array('id' => $root_id, 'repository' => $repository, 'revision' => $revision));
-            $roots[$resolve_ids ? $row['repository_name'] : $row['repository_id']] = $revision;
+            $roots[$resolve_ids ? $row['repository_name'] : $row['repository_id']] = array(
+                'revision' => $revision, 'time' => Database::to_js_time($commit_time));
         }
         array_push($this->root_sets, array('id' => $root_set_id, 'roots' => $root_ids));