We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a32fe commit ad3bc0fCopy full SHA for ad3bc0f
src/model/type/DateTime.php
@@ -52,8 +52,8 @@ public function format(string $format = '')
52
return $this->data->__toString();
53
}
54
55
- if (is_null($this->data)) {
56
- return null;
+ if (is_null($this->data) || is_string($this->data)) {
+ return $this->data;
57
58
59
return $this->data->format($format ?: $this->format);
0 commit comments