Merge branch 'master' of github.com:hekmatinasser/verta

This commit is contained in:
nasser committed 2022-02-16 13:02:43 +03:30
commit 3de8155088
1 file changed
+2 -1
+2 -1
View File
@@ -18,7 +18,7 @@ trait Creator
*/
public function __construct($datetime = null, $timezone = null)
{
if(static::$testNow) {
if (static::$testNow) {
$dt = static::$testNow;
} elseif (empty($datetime)) {
$dt = 'now';
@@ -266,6 +266,7 @@ trait Creator
if ($tz === false) {
throw new InvalidArgumentException(sprintf("Unknown timezone '%s'", $tz));
}
return $tz;
}
}