summaryrefslogtreecommitdiffstats
path: root/app/server-control/controllers
diff options
context:
space:
mode:
authorAlexander Filippov <a.filippov@yadro.com>2018-11-16 16:26:04 +0300
committerGunnar Mills <gmills@us.ibm.com>2018-12-07 18:18:56 +0000
commitdbf048119670aabcdff6c35fe6873f0ac7555a69 (patch)
treeff2ad25c001f3b98c19a773b32d250bebfe56362 /app/server-control/controllers
parentbd500cd2d6841a7d0a7d69bdccfc5d46026380a8 (diff)
downloadphosphor-webui-dbf048119670aabcdff6c35fe6873f0ac7555a69.tar.gz
phosphor-webui-dbf048119670aabcdff6c35fe6873f0ac7555a69.zip
fix date/time representation in national locales
Added "localeDate" filter to present date and time in preferred format: - the date will be displayed as: 'Dec 3, 2018' - the time will be displayed in locale preferred format. - the timezone will be displayed as abbrev or GMT+/-offset. At the 'Date and Time setting' the time zone name will displayed in long format if it is possible. All text parts of date/time representation will be in English. Resolves: openbmc/phosphor-webui#42 Change-Id: I2fdbb47c62dfc5000039b0c00a20f64a9a389fc6 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
Diffstat (limited to 'app/server-control/controllers')
-rw-r--r--app/server-control/controllers/bmc-reboot-controller.html2
-rw-r--r--app/server-control/controllers/power-operations-controller.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/server-control/controllers/bmc-reboot-controller.html b/app/server-control/controllers/bmc-reboot-controller.html
index 8b987a3..dece701 100644
--- a/app/server-control/controllers/bmc-reboot-controller.html
+++ b/app/server-control/controllers/bmc-reboot-controller.html
@@ -6,7 +6,7 @@
<div class="page-header">
<p class="inline h4">Current BMC boot status</p>
<div class="float-right bmc-reboot__status-log inline">BMC last reboot at
- <span class="courier-bold">{{reboot_time | date:'medium'}}</span></div>
+ <span class="courier-bold">{{reboot_time | localeDate}}</span></div>
</div>
</div>
<div class="row column">
diff --git a/app/server-control/controllers/power-operations-controller.html b/app/server-control/controllers/power-operations-controller.html
index 5587ecd..5cfdec1 100644
--- a/app/server-control/controllers/power-operations-controller.html
+++ b/app/server-control/controllers/power-operations-controller.html
@@ -4,7 +4,7 @@
<h1>Server power operations</h1>
<div class="power__current-status page-header">
<h2 class="inline h4">Current status</h2>
- <div class="power__status-log inline float-right">Last power operation at <span class="courier-bold">{{power_time | date:'medium'}}</span></div>
+ <div class="power__status-log inline float-right">Last power operation at <span class="courier-bold">{{power_time | localeDate}}</span></div>
</div>
</div>
<div class="row column">
OpenPOWER on IntegriCloud