Re: Convert local dates into GMT+1 dates
| From: | Eric Butera | Date: | Fri, 26 Sep 2008 13:18:59 +0000 |
| Subject: | Re: Convert local dates into GMT+1 dates | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280973@lists.php.net to get a copy of this message | ||
On Fri, Sep 26, 2008 at 8:52 AM, debussy007 <debussy007@gmail.com> wrote:
>
> Hello everyone!
>
> I have local dates (Belgium), which I want to convert to GMT+1 date.
> The dates are stored in the DB and are of the following format: '2008-06-24
> 23:30:02'
>
> So I think I'll need to check wether the date in DB is GMT+1 or GMT+2
> (winter or summer),
> if date is GMT+2, subtract one hour from the date.
>
> Thank you for any help achieving this !!
> --
> View this message in context:
> http://www.nabble.com/Convert-local-dates-into-GMT%2B1-dates-tp19687861p19687861.html
> Sent from the PHP - General mailing list archive at Nabble.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Perhaps this will help:
http://us3.php.net/manual/en/function.timezone-offset-get.php