Split file at midnight function enabled

seem to be working!