Timezone error when installing

Hello,
When trying to install Sylius I am getting a timezone error with a recommandation : Set ‘date.timezone’ in your php.ini file (e.g. date.timezone = “Europe/Amsterdam”)

When typing

php -i | grep timezone

in command line I get

Default timezone => Europe/Berlin
date.timezone => no value => no value

Of course previously I put my timezone in the php.ini file ( Configuration File (php.ini) Path => /etc/php/7.4/cli) !

Any help on this please ?

Thanks

My php -i | grep timezone config says:
Default timezone => UTC
date.timezone => UTC => UTC

Are you sure, that you change the proper php.ini?

You can find from where the php loads its .ini file with the command

php -i | grep php.ini