Completed
Yesterday's data does not display properly if Foreground is running at midnight
Foreground stores data for past days in a more efficient format than its current day, with totals per app rather than entries covering the active app each second. When Foreground first launches, like when you boot your computer of a morning, Foreground goes through past days’ entries and converts them into the more efficient format. The problem is that once the day ticks over at midnight, if Foreground is still running, this process doesn’t happen, because it’s set to only happen on launch. We need to track whether we’ve just hit midnight and trigger this process as needed.