#431: WebSearch: fix test case searching by date 1976-04-01 and t dog
------------------------+----------------------
  Reporter:  simko      |      Owner:  valkyrie
      Type:  defect     |     Status:  assigned
  Priority:  major      |  Milestone:  v1.0
 Component:  WebSearch  |    Version:
Resolution:             |   Keywords:
------------------------+----------------------

Comment (by simko):

 And if you were worried about further parsing of `dd/mm/yyyy`
 expressions or something, where days may be missing, then you could
 for example (i) detect that the day is missing and set an internal
 variable `day_missing_p` accordingly; (ii) fill in for the missing day
 by `01` temporarily; (iii) call any further nested datetime/dateutil
 processing as usual; (iv) this will eventually end up with yyyy-mm-dd
 on the output string side; (v) now remove trailing `-dd` in final
 yyyy-mm-dd values if `day_missing_p` instructs so, and we should be
 done.  Or something similar...  Would seem more economical than
 switching the library, unless we would need it for other features too.

-- 
Ticket URL: <https://invenio-software.org/ticket/431#comment:8>
Invenio <http://invenio-software.org>

Reply via email to