Fix of by_time scope to catch end-of-month transactions like 31th March.