solves midnight issue

fixes #12