Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
Riccardo Di Dato
2017-08-18 10:34:31 +02:00
parent 13f55d62fc
commit fb74f8e735
+2 -2
View File
@@ -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 );
}
}