1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-08 07:06:52 +02:00

DateTime53 renamed to DibiDateTime

This commit is contained in:
David Grudl
2010-10-06 16:02:20 +02:00
parent 90592929ec
commit 8d6639fa3c
5 changed files with 25 additions and 30 deletions

View File

@@ -46,7 +46,7 @@ class DibiRow implements ArrayAccess, IteratorAggregate, Countable
if ((int) $time === 0) { // '', NULL, FALSE, '0000-00-00', ...
return NULL;
}
$dt = new DateTime53(is_numeric($time) ? date('Y-m-d H:i:s', $time) : $time);
$dt = new DibiDateTime(is_numeric($time) ? date('Y-m-d H:i:s', $time) : $time);
return $format === NULL ? $dt : $dt->format($format);
}