Fix for early dates

All the implementation here was already kindly done by @twistedvisions

I just added some tests.