date_default_timezone_set

It can be used to set the time zone

Example

<?php
date_default_timezone_set(‘Asia/Culcutta’);
echo date_default_timezone_get();
?>

Output

Asia/Calcutta

Share