Lorenzo Milesi
Lorenzo Milesi
I only see a division here: https://github.com/2amigos/yii2-usuario/blob/43b2d76ec6a5719c69f0713ffc6a60dcb23467da/src/User/Helper/TimezoneHelper.php#L35 Could it be there's a TZ causing it?
What is the exact exception you get? I cannot see where it attempts to cast this value to int.
Maybe? Just a guess, `SORT_NUMERIC` should do with floats https://github.com/2amigos/yii2-usuario/blob/43b2d76ec6a5719c69f0713ffc6a60dcb23467da/src/User/Helper/TimezoneHelper.php#L43
Unlikely. Out of curiosity, try changing line 35 of [TimezoneHelper.php](https://github.com/2amigos/yii2-usuario/blob/43b2d76ec6a5719c69f0713ffc6a60dcb23467da/src/User/Helper/TimezoneHelper.php#L35) to something like this: ```php $offset = $date->getOffset() / 60 / 60 * 100; ```
Look [here](https://php.watch/versions/8.1/deprecate-implicit-conversion-incompatible-float-string#array-keys). We should manage `offset` as string instead of `float`, otherwise it cannot be used as array key. So you were right, the problem happens at `ArrayHelper::map`. Can you...
Note: when converting the float to string, remember to `str_pad` the value or sorting will be messed up
PR welcome :) (stavo giusto testando oggi la tua estensione per skebby :D)
Can #448 be of any help?
Did you try [overriding views](https://yii2-usuario.readthedocs.io/en/latest/enhancing-and-overriding/overriding-views/)?
No, you can just override the ones you need. The not found ones will be fetched from the original source