Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44165 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24460 invoked from network); 4 Jun 2009 22:41:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2009 22:41:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.26.185 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.26.185 c2beaomr07.btconnect.com Received: from [213.123.26.185] ([213.123.26.185:23417] helo=c2beaomr07.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/E4-44672-CAD482A4 for ; Thu, 04 Jun 2009 18:41:49 -0400 Received: from [10.0.0.150] (host81-138-11-136.in-addr.btopenworld.com [81.138.11.136]) by c2beaomr07.btconnect.com (MOS 3.8.6-GA) with ESMTP id CSA17291; Thu, 4 Jun 2009 23:41:45 +0100 (BST) Message-ID: <4A284DA8.6080609@lsces.co.uk> Date: Thu, 04 Jun 2009 23:41:44 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.1.21) Gecko/20090408 SeaMonkey/1.1.16 MIME-Version: 1.0 To: PHP internals References: <4A283648.60101@lsces.co.uk> In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Status: score=10/50, host=c2beaomr07.btconnect.com X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A0B0206.4A284DA9.01CE,ss=1,fgs=0, ip=10.0.0.150, so=2007-10-30 19:00:17, dmn=5.7.1/2009-05-14 X-Junkmail-IWF: false Subject: Re: [PHP-DEV] split and strftime on PHP5.3 From: lester@lsces.co.uk (Lester Caine) Derick Rethans wrote: > On Thu, 4 Jun 2009, Lester Caine wrote: > >> 2/ >> "It is not safe to rely on the system's timezone settings. You are *required* >> to use the date.timezone setting or the date_default_timezone_set() function. >> In case you used any of those methods and you are still getting this warning, >> you most likely misspelled the timezone identifier. We selected >> 'Europe/London' for '1.0/DST' instead in" >> >> But the bitweaver structure works in UTC for everything and only converts to a >> time zone if the client has set one in their profile. We have had too many >> problems with PHP trying to default to 'server time' and so that is never >> used. So how do we get rid of this warning? > > Like the error message says: > > "You are *required* to use the date.timezone setting or the > date_default_timezone_set() function." date_default_timezone_set() was part of the code which was why I was confused ;) Just forgot to ensure it was not called when PHP4/5.0 is being used so it had been commented out again to fix that fault :( Now onto replacing a lot of split() calls ... OK only 176 across ADOdb, Smarty and bitweaver ... -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php