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.
You are not logged in. Please login or register.
PunBB Forums → Programming → 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.
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)
thank you...
PunBB Forums → Programming → add +0800 to date
Powered by PunBB, supported by Informer Technologies, Inc.