Fixed date flipping with time change. Closes #9