Per-day logs are now correct.
Fixed major bug in datetime_to_date.
mapPerDay is now a map, not a foreach.
Keep track of empty/skipped days