Re: Timezone offset differences

From: Date: Wed, 17 Jan 2001 03:54:08 +0000
Subject: Re: Timezone offset differences
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-44411@lists.php.net to get a copy of this message
In article <20010117110538.B932@ispi.net>, andrei@ispi.net 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') 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 should be made consistent, and the date() documentation updated to tell exactly which way we've made it consistent. :) jim

« previous php.dev (#44411) next »