You can use ini_set()
to modify php.ini
settings at run time. The modification will be valid only for the current run.
ini_set('date.timezone', 'america/new_york');
ini_set('date.timezone', 'europe/london');
ini_set('date.timezone', 'america/sao_paulo');
... etc.
This setting will affect behaviour of date and time functions like date()
.
Here is a list of supported timezones.