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);


> 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 (
To unsubscribe, visit:

Reply via email to