twigletmac wrote:You could do:
Code: Select all
$time=time() + (5*3600);
$time=date("d M Y h:i a",$time);
That will add 5 hours to the timestamp created by
time().
Mac
hey mac
thanks for that man, it worked but i have another question as it seems that it uses to display functions..
after i did what you said it now displays
Last Updated 05 Mar 2003 08:45 am (which is correct

and that my time)
but the ime shown on the posts below i.e.
ADI Timing Test
on 05-03-03 @ 03:39
(the 03:39) should be 08:39 as thats when i posted it on the forums.
this is what i have in the script now
$time=time() + (5*3600);
$time=date("d M Y h:i a",$time);
and "time" is also mentioned in these bits
$sqlxx="SELECT a1.post_id AS postid, a1.poster_id AS poster, a1.forum_id, a1.topic_id AS topic, a1.post_time AS time, a2.post_subject AS subject, a2.post_text AS text FROM phpbb_posts a1, phpbb_posts_text a2, phpbb_forums a3 WHERE a1.post_id = a2.post_id AND a1.forum_id = a3.forum_id";
and
$sqlxx .= " ORDER BY a1.post_time DESC";
$box_content .="<tr><td ><font size="$fontsize" color="$fontcolor" face="$fontheaderface"><img src="$POST_IMAGE " width="10" height="15" ><a href="" . $phpbb_root_path . "/viewtopic.php?t=" .$post["topic"] . "" title="Posted by:" . $author["username"]. " In:" . $forum["forum_name"] . ""> " . $post["subject"] . "</a><br> on " . date("d-m-y ", $post["time"]) . " @ " . date("H:i", $post["time"]) . "</font></td></tr>";
print("<table width="250"><tr><td>" . $box_title . "</td></tr><tr><td><font size="$fontsize" color="$fontcolor" face="$fontheaderface">Last Updated $time</font></td></tr><tr><td>" . $box_content . "</td></tr></table>");
^^ the time in that last one is all ok, its just on the thread post times thats still 5hours off..
here is a snapshot of what i mean
sorry for all the text heh
DvD