Hi,
PHP scripting language have an built in function to change between the timezones , you will need the PEAR package . In the following example show you how to convert from GMT system format to IST Format .

<?php
// include class
include ("Date.php");

// initialize object
$d = new Date("2008-10-03 16:23:48");

// set server time zone
$d->setTZByID("GMT");

// print server time
echo "Local time is " . $d->format("%A, %d %B %Y %T") . "\n";

// convert to IST
$d->convertTZByID("PST");

// output converted date/time
echo "Destination time is " . $d->format("%A, %d %B %Y %T");

?>

sorry i am not sure about the code (pear package for date)
but i used to change the timezone as following

<?Php
if(function_exists('date_default_timezone_set')){
		date_default_timezone_set("Asia/Calcutta");
	}
	else{
		putenv("TZ=Asia/Calcutta");
	}
	$date = date('l jS \of F Y h:i:s:c A');
?>

Just give it a try

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.