From faaf185362c3ce116fc35b00201ecf78f3239f91 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Tue, 1 Sep 2009 01:19:59 +0000 Subject: [PATCH] Footer now includes a timestamp git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21305 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/Functions.java | 5 +++++ core/src/main/resources/lib/layout/layout.jelly | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index f5de2fee67..bdb36d72f6 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -107,6 +107,7 @@ import java.util.List; import java.util.Map; import java.util.SortedMap; import java.util.TreeMap; +import java.util.Date; import java.util.logging.LogRecord; import java.util.logging.SimpleFormatter; import java.util.regex.Pattern; @@ -1152,6 +1153,10 @@ public class Functions { return ""; } + + public static Date getCurrentTime() { + return new Date(); + } private static final Pattern SCHEME = Pattern.compile("[a-z]+://.+"); diff --git a/core/src/main/resources/lib/layout/layout.jelly b/core/src/main/resources/lib/layout/layout.jelly index 6167161be0..8b69e49ca0 100644 --- a/core/src/main/resources/lib/layout/layout.jelly +++ b/core/src/main/resources/lib/layout/layout.jelly @@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - + Outer-most tag for a normal (non-AJAX) HTML rendering. This is used with nested <header>, <side-panel>, and <main-panel> @@ -237,6 +237,10 @@ THE SOFTWARE.