@@ -74,8 +74,8 @@ class NotiziaModel extends HasMediaModel{
|
||||
$this->about = new stdClass();
|
||||
}
|
||||
|
||||
if (!property_exists($this->about, "data") || !($this->about->date instanceof MongoDB\BSON\UTCDateTime) ){
|
||||
$this->about->date = new MongoDB\BSON\UTCDateTime( time() * 1000 );
|
||||
if (!property_exists($this->about, "data") || !($this->about->data instanceof MongoDB\BSON\UTCDateTime) ){
|
||||
$this->about->data = new MongoDB\BSON\UTCDateTime( time() * 1000 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user