Corrected timestamp grouping.

Some timestamps could fall within yesterday and two days ago and be incorrectly identified as 'today'