Get the BMC time

Get the BMC time from xyz/openbmc_project/time/bmc.
This time is in epoch time so convert.
Before the time and date hardcoded.
From https://docs.angularjs.org/api/ng/filter/date:
"'medium': equivalent to 'MMM d, y h:mm:ss a' for en_US locale
(e.g. Sep 3, 2010 12:05:08 PM)"
This is a similar format as to what was present on the GUI
before for en_US.
Letting the browser choose the format, is important.
Displayed in user's timezone.

Resolves openbmc/openbmc#3116

Tested: Now see correct date and time, "4/19/2018, 20:31:18 UTC"
Change-Id: Ie30c65b038b58afc8c4c77ca5b70667e80e76cc6
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
3 files changed
tree: 217ec501d6ab94b5faa02e74ee185352719f4f72
  1. app/
  2. gulp_tasks/
  3. .babelrc
  4. .gitignore
  5. bower.json
  6. gulp-options.js
  7. gulpfile.js
  8. karma.conf.js
  9. LICENSE
  10. MAINTAINERS
  11. package.json
  12. postcss.config.js
  13. README.md
  14. sonar-project.properties
  15. webpack.config.js
README.md

openbmc

UX Design repo for OpenBMC

OpenBMC

TODO: Write a project description

Requirement

nodejs npm

Installation

npm install

Running

npm run-script server

This will run it locally in http://localhost:8080.

Example Usage with OpenBMC

  1. Browse to https://<bmc-ip> and bypass the secure warning. You will see a JSON response with Login required message.
  2. In the same session, navigate to http://localhost:8080. Enter the BMC IP, Username and Password (defaults: root/0penBmc).

Now you are logged in.