From f4efb9466ed9c2a5fecd8c46eb93e6c3d652f7d5 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 11 Jul 2011 13:49:44 -0500 Subject: Fix history time format so that webgui and cli match (cherry picked from commit 32186e6c37d1df8b76d271070083b785a4508cc0) --- templates/show/history/brief/node.def | 3 ++- templates/show/history/node.def | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/show/history/brief/node.def b/templates/show/history/brief/node.def index 4dc73c1..92c76ca 100644 --- a/templates/show/history/brief/node.def +++ b/templates/show/history/brief/node.def @@ -1,4 +1,5 @@ help: recent command history -run: HISTFILE="$HOME/.bash_history" +run: HISTTIMEFORMAT='%FT%T%z ' + HISTFILE="$HOME/.bash_history" \set -o history history 20 diff --git a/templates/show/history/node.def b/templates/show/history/node.def index 21e79e7..c1487eb 100644 --- a/templates/show/history/node.def +++ b/templates/show/history/node.def @@ -1,4 +1,5 @@ help: show command history -run: HISTFILE="$HOME/.bash_history" +run: HISTTIMEFORMAT='%FT%T%z ' + HISTFILE="$HOME/.bash_history" \set -o history history -- cgit v1.2.3