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.
asTime()
1 parent 232a5e1 commit 503c20cCopy full SHA for 503c20c
src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
@@ -847,7 +847,7 @@ public function fromDateTime($value)
847
*/
848
protected function asTime($value)
849
{
850
- return $value instanceof Carbon || $value instanceof CarbonInterface
+ return $value instanceof CarbonInterface
851
? Date::instance($value)
852
: Date::createFromFormat('H:i:s', $value);
853
}
0 commit comments