Merge pull request #2007 from nabinhait/hotfix

Activity: fix for timeline-wise display
This commit is contained in:
Pratik Vyas 2014-07-31 12:45:43 +05:30
commit 1483e9d8d2

View File

@ -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) {