Fixed purchasesBeforeToday() and purchasesToday().