Activity: fix for timeline-wise display

This commit is contained in:
nabinhait 2014-07-31 12:12:05 +05:30
parent 8dbd295c9b
commit 8efd74b9b1

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