@@ -42,8 +42,9 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function getCreationDateTime() |
44 | 44 | { |
45 | - if ($this->created) |
|
46 | - return \DateTime::createFromFormat( "Y-m-d H:i:s", $this->created ); |
|
45 | + if ($this->created) { |
|
46 | + return \DateTime::createFromFormat( "Y-m-d H:i:s", $this->created ); |
|
47 | + } |
|
47 | 48 | return $this->created; |
48 | 49 | } |
49 | 50 | |
@@ -53,8 +54,9 @@ discard block |
||
53 | 54 | */ |
54 | 55 | public function getLastUpdateDateTime() |
55 | 56 | { |
56 | - if ($this->updated) |
|
57 | - return \DateTime::createFromFormat( "Y-m-d H:i:s", $this->updated ); |
|
57 | + if ($this->updated) { |
|
58 | + return \DateTime::createFromFormat( "Y-m-d H:i:s", $this->updated ); |
|
59 | + } |
|
58 | 60 | return $this->updated; |
59 | 61 | |
60 | 62 | } |