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 ceeb4955d54b2f619d4010ab7a27bd34cda8bc4e..f7b0d6393830c49905729d7837cdd900e61464f8 100644 (file)
@@ -97,7 +97,8 @@ class BuildRequestsFetcher {
             $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']] = array('revision' => $revision, 'time' => $commit_time);
+            $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));