Question and answer is powered by AnsPress.io
I want to change UTC time zone to local time zone in php.Which method can I use for that?
PHP have a simple function named date_default_timezone_set().
Simply pass the time zone as first parameter.
date_default_timezone_set(‘Asia/Kolkata’);
This function simply change the time zone from UTC to your mention time zone in your php application.