1
0
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:
CaMer0n
2012-05-26 12:21:39 +00:00
parent 1c7db4632a
commit d8a6c15c02
14 changed files with 1915 additions and 133 deletions

View File

@@ -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;