CODE
<?php
$server = date("F j, Y, g:i a"); // USA
?>
<?php
$myplace = date("F j, Y, g:i a", time() + 32400); // Slovenia
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Kulturno umetniško društvo Godba na pihala Črnomelj - Kontakt.</title>
</head>
<body>
<?php echo $myplace;?>
<br />
<br />
<?php echo $server;?>
</body>
</html>
So this code defines local time that is set on server where you are hosted:
CODE
$server = date("F j, Y, g:i a"); // USA
This code defines time offset (e.g. time in your country, + or - hours depends on where you are living), we are 9 hours ahead San Francisco so we will embed code in prior time format like this:
CODE
$myplace = date("F j, Y, g:i a", time() + 32400); // Slovenia
Into prior code we added string:
CODE
time() + 32400
Which means we added 32400 seconds what is actually 9hours (*60minutes*60seconds= 9*60*60=32400seconds)
For displaying our strings in document we are using this code:
CODE
<?php echo $myplace;?>
<br />
<br />
<?php echo $server;?>
I found out how this works while fixing my guestbook and time entries which were 9 hours late. So this will solve most of your problems regarding this issue.
Working example of this code: here.
I better be going back to sleep, it is 5AM.

