Hi there!
I’m currently facing a problem with the Formatter component.
In my DEV environment, it seems that Yii::$app->formatter has different outputs from my PROD environment, even if the component’s configurations are the same in the application.
With dates:
I’ve detected that Yii::$app->formatter($somedate, 'short')
outputs DD/MM/YY in PROD, but in DEV it outputs DD/MM/YYYY.
I was able to workaround this situation using Yii::$app->formatter($somedate, ‘php:d/m/Y’), but I’d like to understand what is going on so to properly fix it.
With negative numbers:
Also, when dealing with negative numbers, in DEV we have -200,00 , whereas in PROD we get the positive number in parenthesis (200,00)
Does anyone have a clue on that? I’m suspecting that it is something related with the PHP configuration itself, but I’m not this advanced to trying something over there.
Thank you for your time.
Kind regards,