Merge pull request #92 from amir9480/patch-1
Fix ignoring time zone bug
This commit is contained in:
1 file changed
+1
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user