mirror of https://github.com/MISP/MISP
fix: Fixed invalid timestamp generation
parent
75041b5e1f
commit
f259a51247
|
@ -2966,7 +2966,8 @@ class Attribute extends AppModel {
|
|||
return true;
|
||||
}
|
||||
} else {
|
||||
$attribute['timestamp'] = $date;
|
||||
$date = new DateTime();
|
||||
$attribute['timestamp'] = $date->getTimestamp();;
|
||||
}
|
||||
} else {
|
||||
$this->create();
|
||||
|
|
Loading…
Reference in New Issue