PHP comes with an in-built function to display time in your required format, but what if you want to display date and time according to user’s timezone, that’s where PEAR package Date comes in. Let’s see how we can convert a date in GMT to IST.
<?php
// include class
include ("Date.php");
// initialize object
$d = new Date("2008-10-03 16:23:48");
// [...]
{ View Comments }



