opencivicdata / imago

django app powering Open Civic Data API
Other
12 stars 12 forks source link

Datetime queries do not have a flexible format #50

Open mileswwatkins opened 9 years ago

mileswwatkins commented 9 years ago

We should be able to flexibly search in datetime fields. The docs suggest that one could use everything from year alone to full datetime down to fractional seconds.

For example, this works: http://api.opencivicdata.org/bills/?created_at=2015-04-09T00:24:06.485090 But this (and other variations on datetime) doesn't work: http://api.opencivicdata.org/bills/?updated_at=2015

mileswwatkins commented 9 years ago

Same with votes; currently you have to search on full date string, even though the time component is null: