Fixes #102
datetime.datetime is always a datetime.date object, but no the other way around.
So we need to check whether we have a datetime instead of just a date.
This was actually introduced in 4dc69e10 trying to fix #87 & #96.