Fixes a midnight offset bug