Topic: add +0800 to date
how do i add +0800 to a date.
i now have
date("l dS of F Y - H:i:s",$row[posted])But it needs to be GMT+0800
thank you.

Unfortunately no one can be told what PunBB is - you have to see it for yourself.
You are not logged in. Please login or register.
how do i add +0800 to a date.
i now have
date("l dS of F Y - H:i:s",$row[posted])But it needs to be GMT+0800
thank you.

Can't you just change the timezone?
If not:
$row[posted] is the amount of secons since 1970, so if you want to add 8 hours, just add 8h*60min*60sec = 28800 seconds like this:
date("l dS of F Y - H:i:s", $row[posted]+28800)Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.