Strange Problem with timezone/date in php

SYSTEM INFORMATION
OS type and version AlmaLinux 9.4
Virtualmin version 7.10.0

Hi
I’ve server time and system time correctly set to Europe/Rome and I’ve set Europe/Rome in php.ini.
But when php save a file on the server the new file created is 2 hour older.
Php doesn’t consider the timezone correctly? or the system?
In the file php saving the new file I’ve set
date_default_timezone_set(‘Europe/Rome’);
Is there something I’m missing?
Thanks for any help

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.