Bugfix in parsing date, added debug log in search