projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95b0f12
)
Fix in date2sql function.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Mon, 28 Aug 2017 19:13:47 +0000
(21:13 +0200)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Mon, 28 Aug 2017 19:13:47 +0000
(21:13 +0200)
includes/date_functions.inc
patch
|
blob
|
history
diff --git
a/includes/date_functions.inc
b/includes/date_functions.inc
index 7aa16acc738823019b9a29d01ef6d79ced22d9d1..c0bcbe94476acb565053bbd7268ac01479270b92 100644
(file)
--- 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