Re: Date Time
| From: | Tom Rogers | Date: | Sat, 21 Sep 2002 02:42:21 +0000 |
| Subject: | Re: Date Time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117072@lists.php.net to get a copy of this message | ||
Hi,
Saturday, September 21, 2002, 12:30:48 PM, you wrote:
P> Hi,,
P> my server is located in the US and i live in Sweden, so when i try to run
P> the following command i get a 8hour diffrence,, anyone got any idea of how
P> to solve this?
P> date("Y-m-j")
P> regards
P> Patrick
A quick fix that won't account for daylight saving differences
unless Sweden uses the same dates as the US...
date("Y-m-j",strtotime(+8 hours));
--
regards,
Tom