1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

Fix for datepicker. Issue #1687

This commit is contained in:
Lóna Lore
2016-06-08 23:58:54 +02:00
parent 0c29ac2708
commit f470b554ac

View File

@@ -997,17 +997,8 @@ class e_form
$datestamp = strtotime($datestamp); $datestamp = strtotime($datestamp);
} }
// Create timestamp. // Convert date to proper (selected) format.
if($useUnix == 'true') $value = e107::getDate()->convert_date($datestamp, $dformat);
{
// Use date value as timestamp.
$value = $datestamp;
}
else
{
// Convert date to proper (selected) format.
$value = e107::getDate()->convert_date($datestamp, $dateFormat);
}
} }