I wanted just to use Yii::$app->formatter->asDate() to format how the datetime should be displayed without converting to another timezone; but what I noticed is it also converting the passed datetime to the application timzone.
So how can I block that behaviour and just receive my datetime as it but displayed accordling to the application language(I thought formatter is just for displaying accordling to the current language)?
I have UCI version 51.1 on my local computer but online UCI version 54.1; the problem is the previous solution is working on my local computer but online if I add the timezone it displays the date in UTC and if I remove the timezone it’s displaying the date correctly.
I try to accuse the version but have not found enough theory to support the accusion.
I really don’t get it!!!! I have to pass through all my code to remove the timezone I added; before doing that I wanted to know if my accusation is correct and move on.