Hi,
you can use strtotime to do that. strtotime allows you to add something like "+5 hours" to a date/time string:
<?PHP
$strDateTime = date("Y-m-d H:i:s");
$intMyOffset = -5; // GMT-5
$intUserOffset = 2; // GMT+2
$intOffsetDiff = $intUserOffset-$intMyOffset; // difference
$intNewTimestamp = strtotime("$strDateTime $intOffsetDiff hours");
echo date("Y-m-d H:i:s", $intNewTimestamp);
?>
But this solution doesn't take care of DST.
Thomas