Last power operation
Displays correct power operation time. In the case
that there has not been a power operation, 'not
available' is displayed.
Resolves openbmc/openbmc#2957
Tested: The GUI displayed 'not available' when it
received a 0 value and the correct date when an
epoch was recieved.
Signed-off-by: beccabroek <rebecca.shaw@ibm.com>
Change-Id: I9573a1cdcd31ba4c02888bd46d195c91fdb916a7
diff --git a/app/server-control/controllers/power-operations-controller.html b/app/server-control/controllers/power-operations-controller.html
index dae0c67..5587ecd 100644
--- a/app/server-control/controllers/power-operations-controller.html
+++ b/app/server-control/controllers/power-operations-controller.html
@@ -4,11 +4,7 @@
<h1>Server power operations</h1>
<div class="power__current-status page-header">
<h2 class="inline h4">Current status</h2>
- <!-- TODO: openbmc/openbmc#2957 display correct last power
- operation time, need REST call.
-
- <div class="power__status-log inline float-right">Last power operation at <span class="courier-bold">{{dataService.last_updated |date:'h:mm:ss on MMM dd yyyy'}}</span></div>
- -->
+ <div class="power__status-log inline float-right">Last power operation at <span class="courier-bold">{{power_time | date:'medium'}}</span></div>
</div>
</div>
<div class="row column">