X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fdate_functions.inc;h=c0bcbe94476acb565053bbd7268ac01479270b92;hb=6bcd87642330092910f5d6977845a76ac59350ac;hp=7aa16acc738823019b9a29d01ef6d79ced22d9d1;hpb=95ff74b5722826544743a01daf527aa3c9efe11a;p=fa-stable.git diff --git a/includes/date_functions.inc b/includes/date_functions.inc index 7aa16acc..c0bcbe94 100644 --- a/includes/date_functions.inc +++ b/includes/date_functions.inc @@ -383,10 +383,10 @@ and converts to a yyyy/mm/dd format */ $how = user_date_format(); $sep = $SysPrefs->dateseps[user_date_sep()]; + $date_ = trim($date_); if ($date_ == null || strlen($date_) == 0) return ""; - $date_ = trim($date_); $year = $month = $day = 0; // Split up the date by the separator based on "how" to split it if ($how == 0 || $how == 3) // MMDDYYYY or MmmDDYYYY