From 80ef7967a6993aef17e25a1aeb0367924324d853 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Thu, 18 Apr 2019 13:37:02 +0300 Subject: [PATCH] add only blocks path --- apps/block_scout_web/assets/js/lib/from_now.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/block_scout_web/assets/js/lib/from_now.js b/apps/block_scout_web/assets/js/lib/from_now.js index e883bbcb7d..c260d97aec 100644 --- a/apps/block_scout_web/assets/js/lib/from_now.js +++ b/apps/block_scout_web/assets/js/lib/from_now.js @@ -22,7 +22,7 @@ function updateAge (el, timestamp) { let fromNow = timestamp.fromNow() // show the exact time only for transaction details page. Otherwise, short entry const elInTile = el.hasAttribute('in-tile') - if (!elInTile) { + if ((window.location.pathname.includes('/tx/') || window.location.pathname.includes('/blocks/')) && !elInTile) { const offset = moment().utcOffset() / 60 const sign = offset && Math.sign(offset) ? '+' : '-' const formatDate = `MMMM-DD-YYYY hh:mm:ss A ${sign}${offset} UTC`