mirror of
https://github.com/dg/dibi.git
synced 2025-08-20 21:02:05 +02:00
- supported UNIX timestamp in datetime column
This commit is contained in:
@@ -503,7 +503,7 @@ class DibiResult extends DibiObject implements IDataSource
|
||||
|
||||
case dibi::FIELD_DATE:
|
||||
case dibi::FIELD_DATETIME:
|
||||
$value = strtotime($value);
|
||||
$value = is_numeric($value) ? (int) $value : strtotime($value);
|
||||
return $format === NULL ? $value : date($format, $value);
|
||||
|
||||
case dibi::FIELD_BOOL:
|
||||
|
Reference in New Issue
Block a user