Fix ignoring time zone bug
This commit is contained in:
1 file changed
+1
@@ -35,6 +35,7 @@ trait Creator
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
parent::__construct($datetime, static::createTimeZone($timezone));
|
parent::__construct($datetime, static::createTimeZone($timezone));
|
||||||
|
parent::setTimezone(static::createTimeZone($timezone));
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
throw new InvalidArgumentException(sprintf("Unknown datetime '%s'", $datetime));
|
throw new InvalidArgumentException(sprintf("Unknown datetime '%s'", $datetime));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user