Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19266 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53615 invoked by uid 1010); 28 Sep 2005 13:04:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53600 invoked from network); 28 Sep 2005 13:04:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2005 13:04:53 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:43741] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 50/62-54476-5F49A334 for ; Wed, 28 Sep 2005 09:04:53 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j8SD4obP004428; Wed, 28 Sep 2005 15:04:50 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j8SD4lcC004415; Wed, 28 Sep 2005 15:04:48 +0200 Date: Wed, 28 Sep 2005 15:04:45 +0200 (CEST) X-X-Sender: derick@localhost To: Steph cc: Stanislav Malyshev , PHP Developers Mailing List In-Reply-To: <065b01c5c42c$a2cc99d0$d79cbc3e@foxbox> Message-ID: References: <43393A43.4070805@lsces.co.uk> <43397E48.7080107@lsces.co.uk> <43398CB6.9030808@lsces.co.uk> <065b01c5c42c$a2cc99d0$d79cbc3e@foxbox> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] timezones & date() breakage From: derick@php.net (Derick Rethans) On Wed, 28 Sep 2005, Steph wrote: > > > I wouldn't call it broken, just less inituitive. But besides that point, > > I looked at some data and have a patch that allows the timezone guessing > > code to also check against the GMT offset, and not only the > > abbreviation. This means that with these DB entries: > > > > { "idt", 1, -HOUR ( 3), "Asia/Tel_Aviv" }, > > { "idt", 1, -HOUR (4.5), "Iran/Teheran" }, > > { "idt", 1, -HOUR (6.5), "Asia/Calcutta" }, > > > > IDT will be recognised correctly for all three variations. > > Cool, you can generate a sane E_STRICT from that too (telling people what > they need in their php.ini to speed things up). It already does that: Strict standards: date(): It is not safe to rely on the systems timezone settings, please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. We use 'Europe/Berlin' for 'CEST/2.0' instead. in Command line code on line 1 regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org