Default time zone of India in PHP
Time Zone ‘Asia/Kolkata’date_default_timezone_set('Asia/Kolkata');
How to write in PHP and print/echo?
<?php
date_default_timezone_set("Asia/Kolkata"); //India time (GMT+5:30)
$time_stamp_India = date("Y-m-d H:i:s");
echo $time_stamp_India ;
?>
Output :
2022-07-10 10:57:20
Pingback: How to set time zone of America in PHP? - The Technical Diaries
Pingback: How to set time zone of Europe in PHP? - The Technical Diaries
Pingback: How to get the list of available time zones in PHP? - The Technical Diaries