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.