Merge branch 'master' of github.com:hekmatinasser/verta
This commit is contained in:
commit
3de8155088
1 file changed
+2
-1
@@ -18,7 +18,7 @@ trait Creator
|
|||||||
*/
|
*/
|
||||||
public function __construct($datetime = null, $timezone = null)
|
public function __construct($datetime = null, $timezone = null)
|
||||||
{
|
{
|
||||||
if(static::$testNow) {
|
if (static::$testNow) {
|
||||||
$dt = static::$testNow;
|
$dt = static::$testNow;
|
||||||
} elseif (empty($datetime)) {
|
} elseif (empty($datetime)) {
|
||||||
$dt = 'now';
|
$dt = 'now';
|
||||||
@@ -266,6 +266,7 @@ trait Creator
|
|||||||
if ($tz === false) {
|
if ($tz === false) {
|
||||||
throw new InvalidArgumentException(sprintf("Unknown timezone '%s'", $tz));
|
throw new InvalidArgumentException(sprintf("Unknown timezone '%s'", $tz));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $tz;
|
return $tz;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user