correct the logic for getting today's data in both instance and time-series