X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fdate_functions.inc;h=c0bcbe94476acb565053bbd7268ac01479270b92;hb=9481e23e6d03f39f7d9e745f86bd1be5f703b96d;hp=7aa16acc738823019b9a29d01ef6d79ced22d9d1;hpb=8143beb0b9260509cfd1e73acd3d29c965760763;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