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:
@@ -60,12 +60,9 @@ class DibiRow extends ArrayObject
|
||||
} elseif (is_numeric($time)) { // single timestamp
|
||||
return date($format, $time);
|
||||
|
||||
} elseif (class_exists('DateTime', FALSE)) { // since PHP 5.2
|
||||
} else {
|
||||
$time = new DateTime($time);
|
||||
return $time->format($format);
|
||||
|
||||
} else {
|
||||
return date($format, strtotime($time));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user