Add Last Reboot Time

Added last reboot date and time to Reboot BMC Page.

Resolves openbmc/openbmc#2956

Tested: Rebooted and verified the date and time were correct.

Change-Id: I81cf46f0ad7f4e910cd6645de9830d2952091770
Signed-off-by: beccabroek <rebecca.shaw@ibm.com>
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 2ac6110..cfdd39f 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -532,6 +532,21 @@
                     }
                   });
         },
+        getLastRebootTime: function() {
+          return $http({
+                   method: 'GET',
+                   url: DataService.getHost() +
+                       '/xyz/openbmc_project/state/bmc0/attr/LastRebootTime',
+                   headers: {
+                     'Accept': 'application/json',
+                     'Content-Type': 'application/json'
+                   },
+                   withCredentials: true
+                 })
+              .then(function(response) {
+                return response.data;
+              });
+        },
         hostPowerOn: function() {
           var deferred = $q.defer();
           $http({
@@ -1462,5 +1477,4 @@
       return SERVICE;
     }
   ]);
-
 })(window.angular);