Sergei Kasatkin
Sergei Kasatkin
Putting helper method into separate trait we reduce reasons for `Event` class to be changed and make it smaller Fixes #57
Having string in `_timezone` property didn't have any effect: ``` php > $date = new \DateTime(); php > var_dump($date->getTimezone()->getName()); string(3) "UTC" php > $date->setTimezone('Europe/Berlin'); Warning: DateTime::setTimezone() expects parameter 1 to...
As proposed in https://github.com/omnilight/yii2-scheduling/pull/41/files let's add missing helper methods from [laravel](https://github.com/laravel/framework/blob/master/src/Illuminate/Console/Scheduling/ManagesFrequencies.php). Also they had really good idea with extracting those to a trait.