bug fixed #7
Merge pull request #9 from tkreis/master

adding midnight feature