acdh-oeaw / dig_ed_cat

A web application to browse, analyze and curate a cataloge of digital editions
https://dig-ed-cat.acdh.oeaw.ac.at/
MIT License
9 stars 2 forks source link

Invalid date bug #210

Closed gfranzini closed 2 years ago

gfranzini commented 5 years ago

Hi, a user reported a bug with the Begin date field under Advanced Search. It keeps returning an "invalid date" error, no matter which year you put in. Screenshot below. Any ideas as to why this might be happening? Thanks!

Screenshot 2019-09-12 at 23 11 38

zxenia commented 5 years ago

Hi, I looked in code it is a DateField so the value must be in YYYY-MM-DD format. Can you please test this, Thanks!

gfranzini commented 5 years ago

So, entering a random value YYYY-MM-DD works (by "works" I mean it doesn't return an error) but the problem is that we don't have months and days in the CSV, so the result for any given query that follows the YYYY-MM-DD format will return 0 results. The values must be changed to YYYY only. Is that possible? Thanks!