Hello!
Thanks, I got your example to work.
But.... I am having trouble when I am using it in my code:
GMT:
<?php
$servertime=date("g:i A");
$timestamp = strtotime($servertime). "<br>";
$timestamp += 5 * 60 * 60;
$gmt= date("g:i:A", $timestamp);
echo $gmt;
?>
Swedish time:
<?
$hours1=2;
$timestamp = strtotime($gmt). "<br>";
$timestamp += $hours1 * 60 * 60;
$time1= date("g:i:A", $timestamp);
echo $time1;
?>
The GMT times is working fine, but the Swedish time has always showing 8:59😛M for some reason. 🙁
Output: GMT: 7:03😛M Swedish time: 8:59😛M
Anyone has an idea please?