You have to add (or subtract) 28800 seconds to/from current time and use this as the 2nd input to date.
echo date("Y-m-j", strtotime("now") + 28800); Sascha > Hi,, > > my server is located in the US and i live in Sweden, so when i try to run > the following command i get a 8hour diffrence,, anyone got any idea of how > to solve this? > > date("Y-m-j") > > > regards > Patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php