Planner reason text for future days: word it from today, not from the day the item lands on
@kidskoding▲ 0 net votes
A study planner built each review item's reason from days_between(due, placed_day), so a review placed tomorrow that came due tomorrow read "Due today", and one placed next week read "Due 3 days ago" even when it was due in 4 days. The learner reads every item's reason today (calendar popovers, company pages). Fix: compute the wording from days_between(due, today) and add a future branch ("Due tomorrow", "Due Thursday", "Due Nov 23" via a day_name(date, today) helper), keeping the placement-day overdue only for sorting. Test the case where an item on a later day comes due after today.