Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/utility/formatters/date_formatter.php
Show First 20 Lines • Show All 382 Lines • ▼ Show 20 Line(s) | |||||
$dt_separator = getArrayValue($options,'date_time_separator'); | $dt_separator = getArrayValue($options,'date_time_separator'); | ||||
if($dt_separator) $value = trim($value, $dt_separator); | if($dt_separator) $value = trim($value, $dt_separator); | ||||
if($value == '') return NULL; | if($value == '') return NULL; | ||||
//return strtotime($value); | //return strtotime($value); | ||||
$format = $options['input_format']; | $format = $options['input_format']; | ||||
if ($dt_separator) $format = trim($format, $dt_separator); | if ($dt_separator) $format = trim($format, $dt_separator); | ||||
$error_params = Array( $this->HumanFormat($format), adodb_date($format), 'value' => $value ); | $error_params = array( | ||||
'format' => $this->HumanFormat($format), | |||||
'sample' => adodb_date($format), | |||||
'value' => $value, | |||||
); | |||||
$hour = 0; | $hour = 0; | ||||
$minute = 0; | $minute = 0; | ||||
$second = 0; | $second = 0; | ||||
$month = 1; | $month = 1; | ||||
$day = 1; | $day = 1; | ||||
$year = 1970; | $year = 1970; | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |