Merge pull request #92 from amir9480/patch-1

Fix ignoring time zone bug
This commit is contained in:
hekmatinasser authored and GitHub committed 2021-01-13 17:13:42 +03:30
commit 2aa9685b16
1 file changed
+1
+1
View File
@@ -35,6 +35,7 @@ trait Creator
try {
parent::__construct($datetime, static::createTimeZone($timezone));
parent::setTimezone(static::createTimeZone($timezone));
} catch (Exception $exception) {
throw new InvalidArgumentException(sprintf("Unknown datetime '%s'", $datetime));
}