issue_80: fix date returned by datepicker not understood by activerecord