Fixed compile warnings

Actually, I now see the deprecation (for the `DateMidnight` class itself) after running `gradlew eclipse` to update the versions.

So, my next question is whether we want to handle the deprecation *properly* (whatever that may be), rather than suppressing this warning?