Fixes showing today's messages in history window.

cusax-fix
Damian Minkov 14 years ago
parent 81b590fac3
commit 0030f69cee

@ -389,6 +389,8 @@ protected void windowClosing(WindowEvent e)
/**
* Returns the next date from the history.
* When <tt>date</tt> is the last one, we return the current date,
* means we are loading today messages (till now).
*
* @param date The date which indicates where to start.
* @return the date after the given date
@ -408,8 +410,7 @@ public Date getNextDateFromHistory(Date date)
}
}
long ts = System.currentTimeMillis();
return new Date(ts - ts % (24*60*60*1000));
return new Date(System.currentTimeMillis());
}
/**

Loading…
Cancel
Save