http://melody.freeprohost.com/guest.php
I would like to use the above PHP guestbook (created by someone for free downloading). I like it because it allows one to redesign in accordance to one's liking and also set the time difference accordingly.

But i have a problem here. The server from USA that I use has a time difference of 5 hours from the guestbook setting that I use.
I modify the time difference setting but the time during which any message posted between 12.01am to 4.59am becomes 24.01 - 28.59 .

I have consulted the person who wrote the codes (creator of the guestbook) but he could not help. I have ever post queries in another forum before but the problem still could not be resolved. I would appreciate if someone here could help. Many thanks in advance.

Appended below are the codes used for setting the time difference:



<? require("check.php") ;?>
<?
if($_POST['ghtml'] != "")
{
$gname=str_replace("∥","", $_POST['gname']);
$gup=str_replace("∥","", $_POST['gup']);
$guser=str_replace("∥","", $_POST['guser']);
$gmail=str_replace("∥","", $_POST['gmail']);
$ghome=str_replace("∥","", $_POST['ghome']);
$gwidth=str_replace("∥","", $_POST['gwidth']);
$gn=str_replace("∥","", $_POST['gn']);
$gnnumber=str_replace("∥","", $_POST['gnnumber']);
$ghtml=str_replace("∥","", $_POST['ghtml']);
$gup=str_replace("∥","", $_POST['gup']);
$gm_link=str_replace("∥","", $_POST['gm_link']);
$gu_link=str_replace("∥","", $_POST['gu_link']);
$go_link=str_replace("∥","", $_POST['go_link']);
$gc_link=str_replace("∥","", $_POST['gc_link']);
$gm_line=str_replace("∥","", $_POST['gm_line']);
$gi_line=str_replace("∥","", $_POST['gi_line']);
$go_skin=str_replace("∥","", $_POST['go_skin']);
$gm_skin=str_replace("∥","", $_POST['gm_skin']);
$gc_skin=str_replace("∥","", $_POST['gc_skin']);
$gf_type=str_replace("∥","", $_POST['gf_type']);
$gip=str_replace("∥","", $_POST['gip']);
$gt_y=str_replace("∥","", $_POST['gt_y']);
$gt_m=str_replace("∥","", $_POST['gt_m']);
$gt_d=str_replace("∥","", $_POST['gt_d']);
$gt_h=str_replace("∥","", $_POST['gt_h']);
$gt_s=str_replace("∥","", $_POST['gt_s']);
$g_boy=str_replace("∥","", $_POST['g_boy']);
$g_girl=str_replace("∥","", $_POST['g_girl']);
$system=$gname."∥".$gup."∥".$guser."∥".$gmail."∥".$ghome."∥".$gwidth."∥".$gnnumber."∥".$gn."∥".$gm_l ink."∥".$gu_link."∥".$go_link."∥".$gc_link."∥".$gm_line."∥".$gi_line."∥".$go_skin."∥".$gm_skin."∥".$ gc_skin."∥".$gf_type."∥".$gip."∥".$gt_y."∥".$gt_m."∥".$gt_d."∥".$gt_h."∥".$gt_s."∥".$g_boy."∥".$g_gi rl."∥".$ghtml;
$f=fopen("gtype.dat","w+");
fputs($f,$system);
fclose($f);
echo "<table border=0 width=150><tr><td><fieldset><center><br><font color=Red size=2><legend>finish editing</legend></font><a href=javascript:history.back(1)><font color=$gm_link size=2>return to previous page</font></a><hr color=$gu_link width=150 size=1></fieldset></td></tr></table>";
}
?>
=============================================
<form action="system.php?cookie=yes" method="post">
<tr>
<td width="55%" style="border: 1 solid #C0C0C0"><font size="2">time difference </font></td>
<td width="47%" style="border: 1 solid #C0C0C0"><font size="2">year:<input type="text" name="gt_y" size="2" value="<?=$gt_y;?>">month:<input type="text" name="gt_m" size="2" value="<?=$gt_m;?>">date:<input type="text" name="gt_d" size="2" value="<?=$gt_d;?>">hour:<input type="text" name="gt_h" size="2" value="<?=$gt_h;?>">minute:<input type="text" name="gt_s" size="2" value="<?=$gt_s;?>"></font></td>
</tr>