Index: branches/5.3.x/core/kernel/utility/formatters/date_formatter.php =================================================================== diff -u -N -r15483 -r15928 --- branches/5.3.x/core/kernel/utility/formatters/date_formatter.php (.../date_formatter.php) (revision 15483) +++ branches/5.3.x/core/kernel/utility/formatters/date_formatter.php (.../date_formatter.php) (revision 15928) @@ -1,6 +1,6 @@ SetDBField($sub_fields['time'], $empty_time); } elseif ( $object->GetDBField($sub_fields['time']) != '' && $object->GetDBField($sub_fields['date']) == '' ) { // when date is not supplied, then use "1970-01-01 00:00:00" instead (or unit config override) $empty_date = getArrayValue($options, 'empty_date'); if ( $empty_date === false ) { - $empty_date = adodb_mktime(0, 0, 0, 1, 1, 1970); + $empty_date = mktime(0, 0, 0, 1, 1, 1970); } $object->SetDBField($sub_fields['date'], $empty_date); } @@ -265,7 +265,7 @@ } if (!$options['use_timezone']) { - return adodb_gmdate($options['format'], $value); + return gmdate($options['format'], $value); } $format = defined($options['format']) ? constant($options['format']) : $options['format']; @@ -275,7 +275,7 @@ $format = trim($format, $dt_separator); } - return adodb_date($format, $value); + return date($format, $value); } function HumanFormat($format) @@ -373,7 +373,7 @@ $format = $options['input_format']; if ($dt_separator) $format = trim($format, $dt_separator); - $error_params = Array( $this->HumanFormat($format), adodb_date($format), 'value' => $value ); + $error_params = Array( $this->HumanFormat($format), date($format), 'value' => $value ); $hour = 0; $minute = 0; @@ -496,14 +496,14 @@ } if (!$options['use_timezone']) { - return adodb_gmmktime($hour, $minute, $second, $month, $day, $year); + return gmmktime($hour, $minute, $second, $month, $day, $year); } - return adodb_mktime($hour, $minute, $second, $month, $day, $year); + return mktime($hour, $minute, $second, $month, $day, $year); } function GetSample($field, &$options, &$object) { - return $this->Format( adodb_mktime(), $field, $object, $options['input_format']); + return $this->Format( time(), $field, $object, $options['input_format']); } } \ No newline at end of file