fix: Fixed invalid timestamp generation

pull/2668/head
iglocska 2017-11-22 10:59:42 +01:00
parent 75041b5e1f
commit f259a51247
1 changed files with 2 additions and 1 deletions

View File

@ -2966,7 +2966,8 @@ class Attribute extends AppModel {
return true;
}
} else {
$attribute['timestamp'] = $date;
$date = new DateTime();
$attribute['timestamp'] = $date->getTimestamp();;
}
} else {
$this->create();