From b1464d9508637c29d70d76652006d6efa504d63c Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Mon, 25 Jan 2016 09:54:57 +0100 Subject: [PATCH] Small improvement to timestamp Former-commit-id: 4ac24011dc2c460d159a1b983fa1f013d6daaeee --- web-resource/js/hal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-resource/js/hal.js b/web-resource/js/hal.js index 2e58fa72..48d864a5 100755 --- a/web-resource/js/hal.js +++ b/web-resource/js/hal.js @@ -35,7 +35,7 @@ $.fn.relTimestamp = function() { var timeDiff = timestampNow - timestamp; if(timeDiff < 24 * 60 * 60 * 1000) // less than 24 hours - $(this).text(moment(timestamp).fromNow()); + $(this).text(moment(timestamp).fromNow() + " ("+moment(timestamp).format("HH:mm")+")"); else $(this).text(moment(timestamp).format("YYYY-MM-DD HH:mm")); return this;