Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
esyede committed Dec 10, 2023
1 parent 0b7acb4 commit e1c302d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/carbon.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct($time = null, $tz = null)
$time = $test->toDateTimeString();
}

parent::__construct($time, static::safeCreateDateTimeZone($tz));
parent::__construct($time ? $time : 'now', static::safeCreateDateTimeZone($tz));
}

protected static function safeCreateDateTimeZone($tz)
Expand Down

0 comments on commit e1c302d

Please sign in to comment.