Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19183 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91958 invoked by uid 1010); 27 Sep 2005 11:30:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91942 invoked from network); 27 Sep 2005 11:30:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Sep 2005 11:30:39 -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:32829] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D8/24-54476-C5D29334 for ; Tue, 27 Sep 2005 07:30:37 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j8RBUMZg001282; Tue, 27 Sep 2005 13:30:22 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j8RBUJ1t001274; Tue, 27 Sep 2005 13:30:20 +0200 Date: Tue, 27 Sep 2005 13:30:19 +0200 (CEST) X-X-Sender: derick@localhost To: Stanislav Malyshev cc: PHP Development In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-2106549991-1127820619=:24804" X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] timezones & date() breakage From: derick@php.net (Derick Rethans) --8323328-2106549991-1127820619=:24804 Content-Type: TEXT/PLAIN; charset=iso-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 27 Sep 2005, Stanislav Malyshev wrote: > While everything worked just fine before, I can not use date() function > anymore. Sure you can, you just set the timezone yourself with the date.timezone=20 setting. If you had e_strict errors turned on, you would have seen a=20 warning about this. > I guess this is because the built-in library that is now in charge > for timezones does not recognize my timezone. What is the timezone abbreviation (you can not call it a "timezone" as=20 an abbreviation is not unique per s=E9)? If you tell us what name is not=20 recognised, we can add it. > I think using library that has > internal fixed timezone list which is not the same as OSs tiemzone list i= s > extermely unfortunate choice. I totally disagree. It's extremely annoying if an application that uses=20 timezones can not use it on another platform because the data for it is=20 not there, or there is another abbreviation/name associated with it. > While setting up timezone on user's OS is pretty > much standard procedure (at least, any qualified sysadmin knows to do thi= s and > one can rely on it being done before PHP is run), I have no idea how can = I > make PHP to recognize my timezone now and thus besically what I have is t= hat > all date() functions are broken for me. Turn on E_STRICT error reporting... and see the documentation:=20 http://php.net/manual/en/ref.datetime.php regards, Derick --=20 Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org --8323328-2106549991-1127820619=:24804--