mirror of
https://github.com/dg/dibi.git
synced 2025-08-11 08:34:59 +02:00
removed PHP 5.1 support; removed DibiVariable & IDibiVariable
This commit is contained in:
@@ -636,12 +636,9 @@ class DibiResult extends DibiObject implements IDataSource
|
||||
} elseif (is_numeric($value)) { // single timestamp
|
||||
return date($format, $value);
|
||||
|
||||
} elseif (class_exists('DateTime', FALSE)) { // since PHP 5.2
|
||||
} else {
|
||||
$value = new DateTime($value);
|
||||
return $value->format($format);
|
||||
|
||||
} else {
|
||||
return date($format, strtotime($value));
|
||||
}
|
||||
|
||||
case dibi::BOOL:
|
||||
|
Reference in New Issue
Block a user