Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not use strtotime for integer values.

  • Loading branch information...
commit 22a3df0374f234904c4d221516d4df24a77626d7 1 parent 396e0cb
Marc Ghorayeb authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  data/source/Database.php
View
2  data/source/Database.php
@@ -1198,7 +1198,7 @@ protected function _cast($type, $value) {
switch ($column['formatter']) {
case 'date':
- return $column['formatter']($column['format'], strtotime($value));
+ return $column['formatter']($column['format'], is_string($value) ? strtotime($value) : $value);
default:
return $column['formatter']($value);
}
Please sign in to comment.
Something went wrong with that request. Please try again.