FIX insert extra fields when datetime is a timestamp in a string
This commit is contained in:
parent
3143175349
commit
7430092f2f
@ -6270,7 +6270,7 @@ abstract class CommonObject
|
|||||||
case 'date':
|
case 'date':
|
||||||
case 'datetime':
|
case 'datetime':
|
||||||
// If data is a string instead of a timestamp, we convert it
|
// If data is a string instead of a timestamp, we convert it
|
||||||
if (!is_int($this->array_options[$key])) {
|
if (!is_numeric($this->array_options[$key]) || $this->array_options[$key] != intval($this->array_options[$key])) {
|
||||||
$this->array_options[$key] = strtotime($this->array_options[$key]);
|
$this->array_options[$key] = strtotime($this->array_options[$key]);
|
||||||
}
|
}
|
||||||
$new_array_options[$key] = $this->db->idate($this->array_options[$key]);
|
$new_array_options[$key] = $this->db->idate($this->array_options[$key]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user