Re: [PHP-DEV] Timezone offset differences

2001-01-18 Thread Andrei Zmievski
On Wed, 17 Jan 2001, Chuck Hagenbuch wrote: > For the record, I reported a similar problem on win32 a while ago, though it > was with date('r') (rfc822 date), but showed the same thing - wrong sign for > the timezone offset. Fixed. -Andrei "Music expresses that which can not be said and on w

Re: [PHP-DEV] Timezone offset differences

2001-01-17 Thread Chuck Hagenbuch
Quoting Jim Winstead <[EMAIL PROTECTED]>: > i didn't check how date('Z') is defined (do you add it to local time to get > UTC or subtract it?) but it may be that systems where struct tm has a > tm_gmtoff member and systems that use the timezone global may > define it different ways. > > they sho

Re: [PHP-DEV] Timezone offset differences

2001-01-17 Thread Jim Winstead
On Wed, Jan 17, 2001 at 01:58:14PM -0600, Andrei Zmievski wrote: > On Wed, 17 Jan 2001, Jim Winstead wrote: > > i didn't check how date('Z') is defined (do you add it to local time to get > > UTC or subtract it?) but it may be that systems where struct tm has a > > tm_gmtoff member and systems tha

Re: [PHP-DEV] Timezone offset differences

2001-01-17 Thread Andrei Zmievski
On Wed, 17 Jan 2001, Jim Winstead wrote: > i didn't check how date('Z') is defined (do you add it to local time to get > UTC or subtract it?) but it may be that systems where struct tm has a > tm_gmtoff member and systems that use the timezone global may > define it different ways. Well, I am in

Re: [PHP-DEV] Timezone offset differences

2001-01-17 Thread Jim Winstead
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Right now date('Z') returns timezone offset with different signs on > Linux and Solaris. For my timezone I get -21600 on Linux and 21600 on > Solaris. What would be a good way to fix it so that it's consistent? i didn't check how date('Z

[PHP-DEV] Timezone offset differences

2001-01-17 Thread Andrei Zmievski
Hi, Right now date('Z') returns timezone offset with different signs on Linux and Solaris. For my timezone I get -21600 on Linux and 21600 on Solaris. What would be a good way to fix it so that it's consistent? -Andrei * We reason deeply, when we forcibly feel. * -- PHP Development Mailing Lis