fixed regression bug from commit #7186e7b which caused the logs model to insert empty dates