![]() |
Invalid start date for creation date range - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: Bugs/Errors (https://community.letodms.com/forumdisplay.php?fid=11) +--- Thread: Invalid start date for creation date range (/showthread.php?tid=271) |
Invalid start date for creation date range - lpalacin - 04-01-2011 Sorry: When I put a date in a search form it says me: "Invalid start date for creation date range" My browser is firefox in spanish version. Can anybody help me? Thank RE: Invalid start date for creation date range - steinm - 04-04-2011 (04-01-2011, 07:43 PM)lpalacin Wrote: Sorry: It is a bug in letodms. I just fixed it in the svn. The next release 3.0.0 RC5 will have the fix. Uwe RE: Invalid start date for creation date range - lpalacin - 04-05-2011 Thanks. For now, I have designed a solution: It works with original mktime (no makeTimeStamp) It was wrong the variable $createstartdate. Is his place $creationstartdate. Also a "." in the final search. $searchCreateDate .= "`tblDocuments`.`date` <= ".$stopdate; In Inc.ClassDMS.php $searchCreateDate = ""; if ($creationstartdate) { $startdate = mktime (0,0,0, ["month"], $creationstartdate["day"], $creationstartdate["year"]); if ($startdate) { $searchCreateDate .= "`tblDocuments`.`date` >= ".$startdate; } } if ($creationenddate) { $stopdate = mktime (23, 59, 59, $creationenddate["month"], $creationenddate["day"], $creationenddate["year"]); if ($stopdate) { if($startdate) $searchCreateDate .= " AND "; $searchCreateDate .= "`tblDocuments`.`date` <= ".$stopdate; } } RE: Invalid start date for creation date range - steinm - 04-05-2011 (04-05-2011, 02:00 AM)lpalacin Wrote: Thanks. For now, I have designed a solution: That should fix it. I will include a solution which still uses makeTimeStamp() but your approach should work as well. Uwe |