From 8efd74b9b1899c4fcf01ae3d88c10eda4433049d Mon Sep 17 00:00:00 2001 From: nabinhait Date: Thu, 31 Jul 2014 12:12:05 +0530 Subject: [PATCH] Activity: fix for timeline-wise display --- erpnext/home/page/activity/activity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/home/page/activity/activity.js b/erpnext/home/page/activity/activity.js index 2494885ad9..57a38ac19b 100644 --- a/erpnext/home/page/activity/activity.js +++ b/erpnext/home/page/activity/activity.js @@ -73,7 +73,7 @@ erpnext.ActivityFeed = Class.extend({ var last = erpnext.last_feed_date; if((last && dateutil.obj_to_str(last) != dateutil.obj_to_str(date)) || (!last)) { - var diff = dateutil.get_day_diff(new Date(), date); + var diff = dateutil.get_day_diff(dateutil.get_today(), dateutil.obj_to_str(date)); if(diff < 1) { pdate = 'Today'; } else if(diff < 2) {