Bugfix: use datetime.date properly.