Basic date compare fix
The date compare now uses correct preg_split for splitting with - and / as date separators
This commit is contained in:
@@ -1239,8 +1239,8 @@
|
||||
return FALSE;
|
||||
|
||||
// splits the data up with / or -
|
||||
list ($start_year, $start_month, $start_day) = explode('[/-]', $start_date);
|
||||
list ($end_year, $end_month, $end_day) = explode('[/-]', $end_date);
|
||||
list ($start_year, $start_month, $start_day) = preg_split('/[\/-]/', $start_date);
|
||||
list ($end_year, $end_month, $end_day) = preg_split('/[\/-]/', $end_date);
|
||||
// check that month & day are two digits and then combine
|
||||
foreach (array('start', 'end') as $prefix)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user