mirror of
https://github.com/dg/dibi.git
synced 2025-08-28 16:29:50 +02:00
- supported UNIX timestamp in datetime column
This commit is contained in:
@@ -307,7 +307,7 @@ final class DibiTranslator extends DibiObject
|
||||
|
||||
case 'd': // date
|
||||
case 't': // datetime
|
||||
return $this->driver->escape(is_string($value) ? strtotime($value) : $value, $modifier);
|
||||
return $this->driver->escape(is_numeric($value) ? (int) $value : strtotime($value), $modifier);
|
||||
|
||||
case 'by':
|
||||
case 'n': // identifier name
|
||||
|
Reference in New Issue
Block a user