fix minor error in console output on day-rollover

also fixed some warnings