swatisonee
08-12-2008, 05:35 AM
Strange issue .
I'm using the foll. code but the time it indicates is about 7-8 mins faster than the current local standard time. Any idea how I could rectify this ?
$date = putenv('TZ=Asia/Calcutta');
// $date = putenv('TZ=Asia/Katmandu'); // tried this option too
mktime(0,0,0,1,1,1970) ;
echo '<p align="center"> ';
// displays 07-08-2008 14:02:44 when the actual local time is 07-08-2008 13:55:44
I'm using the foll. code but the time it indicates is about 7-8 mins faster than the current local standard time. Any idea how I could rectify this ?
$date = putenv('TZ=Asia/Calcutta');
// $date = putenv('TZ=Asia/Katmandu'); // tried this option too
mktime(0,0,0,1,1,1970) ;
echo '<p align="center"> ';
// displays 07-08-2008 14:02:44 when the actual local time is 07-08-2008 13:55:44