Shahir R. Ali

Results 29 comments of Shahir R. Ali

@maxxer I added a `print_r($timeZones); die;` to line 42 and got this ``` ... ... ... 389 => [ 'timezone' => 'Pacific/Chatham' 'name' => 'Pacific/Chatham (UTC +12.75)' 'offset' => 12.75...

@maxxer It fails in this `view` ``` ``` in `ArrayHelper::map()` maybe ?

> ``` > $date->getOffset() / 60 / 60 * 100; > ``` Yeah now it works. But the drop-down timezone looks like this. +8 becomes +800 and so on ```...

> > > Fixed this by adding code for event: > > ``` > Event::on( > SecurityController::class, SocialNetworkAuthEvent::EVENT_BEFORE_AUTHENTICATE, function (SocialNetworkAuthEvent $event) { > $client = $event->getClient(); > $account = $event->getAccount();...

i tried adding it manually in the `registrationcontroller.php` ``` public function actionConnect($code) { /** @var SocialNetworkAccount $account */ $account = $this->socialNetworkAccountQuery->whereCode($code)->one(); $this->on( SecurityController::class, SocialNetworkAuthEvent::EVENT_BEFORE_AUTHENTICATE, function (SocialNetworkAuthEvent $event) { $client =...

anyone?? i'm still stuck on this. I also have this in my user model ``` /** * {@inheritdoc} */ public function scenarios() { return ArrayHelper::merge( parent::scenarios(), [ 'register' => ['email',...

any updates on this? Any tutorial or documentation to do this? Thanks

> Thanks for the PR! Are you sure this is sorting as expected? Just quoting a number in string means "12" comes before "2". The number must always have two...

i found this issues, but the solution didn't work for me [#383]([](https://github.com/2amigos/yii2-usuario/issues/383))