Is the time on your site not correct?
Well with one line of code you can change all the time on your site.
Just add this to every page or you can put this in a php file and include it in every page.
putenv("TZ=Africa/Johannesburg");
just change the red to any of the following until your time is right.
List Of TimeZones
Please tell me how to ajust time server in Rw script
I follow your php code,
I make one php file whith this code:
time.php
<?
putenv("RO=Europe/Bucharest");
?>
And after i put this line code in all files scripts
include("time.php");
But dont work  My server its from Valey US And my contry its Romania whith local time Bucharest
All the time in my script its changed whith 7 hours
echo "<a href="http://wapcomunity.ro">[-Enter Here-]</a>";