Fixing dates check

I only use date, not hours in my posts, and the script was failing.

As far as:

```python
>>> import datetime
>>> isinstance(datetime.datetime.today(), datetime.date)
True
>>> isinstance(datetime.datetime.today(), datetime.datetime)
True
>>> isinstance(datetime.date.today(), datetime.date)
True
>>> isinstance(datetime.date.today(), datetime.datetime)
False
```

I've changed the check to `datetime.date` instead of `datetime.datetime`