mirror of
https://github.com/e107inc/e107.git
synced 2025-08-28 00:30:09 +02:00
Major clean-up and enhancement of datepicker() and related functions
This commit is contained in:
@@ -2840,7 +2840,13 @@ class e_admin_controller_ui extends e_admin_controller
|
||||
case 'datestamp':
|
||||
if(!is_numeric($value))
|
||||
{
|
||||
$value = trim($value) ? e107::getDateConvert()->toTime($value, 'input') : 0;
|
||||
if(vartrue($attributes['writeParms']))
|
||||
{
|
||||
parse_str($attributes['writeParms'],$opt);
|
||||
}
|
||||
|
||||
$format = $opt['type'] ? ('input'.$opt['type']) : 'inputdate';
|
||||
$value = trim($value) ? e107::getDate()->toTime($value, $format) : 0;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user