Merge pull request #29 from mattheobjornson/timezone-fix

Fix of timezone saving in Profile
This commit is contained in:
Antonio Ramirez
2017-07-26 07:19:50 +02:00
committed by GitHub

View File

@ -125,7 +125,7 @@ class Profile extends ActiveRecord
*/
public function setTimeZone(DateTimeZone $timezone)
{
$this->setAttribute('timezone', $timezone);
$this->setAttribute('timezone', $timezone->getName());
}
/**