vmn Posted March 27, 2015 Share Posted March 27, 2015 Hi, I noticed that the function CheckDateRange does not support date locales. This function is used at least in advanced_search.php. Any fix? Link to comment Share on other sites More sharing options...
vmn Posted March 28, 2015 Author Share Posted March 28, 2015 Hi,I changed the Finnish date format to ISO in advanced search.New define:In catalog/includes/languages/english/advanced_search.phpdefine('SEARCH_DATE_FORMAT_STRING', 'mm/dd/yyyy');In catalog/includes/languages/finnish/advanced_search.phpdefine('SEARCH_DATE_FORMAT_STRING', 'yyyy-mm-dd');Changes:In catalog/includes/languages/finnish.phpdefine('JQUERY_DATEPICKER_FORMAT', 'yy-mm-dd');// Return date in raw format// $date should be in format yyyy-mm-dd// raw date is in format YYYYMMDD, or DDMMYYYYfunction tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 0, 4) . substr($date, 5, 2) . substr($date, 8, 2); } else { return substr($date, 8, 2) . substr($date, 5, 2) . substr($date, 0, 4); }}Then I replaced all 'DOB_FORMAT_STRING' with 'SEARCH_DATE_FORMAT_STRING' inadvanced_search.phpadvanced_search_result.php Link to comment Share on other sites More sharing options...
Mikepo Posted May 13, 2015 Share Posted May 13, 2015 Hi, I noticed the same issue in Osc2.3.4 BS Gold, so made the same changes. Advanced search by date now works ok thanks for the input Mike @@burt this my need adding/changing in BS Gold etc osC CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.