Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56933 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13848 invoked from network); 15 Dec 2011 10:17:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2011 10:17:29 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:44230] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/52-30539-839C9EE4 for ; Thu, 15 Dec 2011 05:17:29 -0500 Received: by yenl6 with SMTP id l6so1422626yen.29 for ; Thu, 15 Dec 2011 02:17:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=YAvqziPdEDUaT/uj15oVABaJQIYxh7VqPg8GtYenu0w=; b=scpSGodv4Ve5dyopG7i1ZpWlnLeHarU3Z5iXupRS965L1tIEW89hhpIHmpaijFNW9f 8U/66VmSCStUWeQuwiZVC3BSemTRc15H2UvKqq2/6ye74byGeGryD0gghlUkfjtSg2G0 P8o0ZHWVD1l36Lzwa4OlZGkS9QQALpH7q5yGo= MIME-Version: 1.0 Received: by 10.236.153.42 with SMTP id e30mr4493041yhk.10.1323944245871; Thu, 15 Dec 2011 02:17:25 -0800 (PST) Received: by 10.146.204.6 with HTTP; Thu, 15 Dec 2011 02:17:25 -0800 (PST) In-Reply-To: <4EE91FDE.1060005@sugarcrm.com> References: <8D58A664-7250-4FEE-9424-2D2DEFC69308@inbox.lv> <1C397FE3-76E2-473B-B47F-194DAF3ACB39@inbox.lv> <4EE91556.3040909@sugarcrm.com> <4EE91FDE.1060005@sugarcrm.com> Date: Thu, 15 Dec 2011 11:17:25 +0100 Message-ID: To: Stas Malyshev Cc: Will Fitch , Oleg Oshmyan , Derick Rethans , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Local time zone From: pierre.php@gmail.com (Pierre Joye) On Wed, Dec 14, 2011 at 11:14 PM, Stas Malyshev wr= ote: > Hi! > > >> I believe he's referring to sys/time.h, but this introduces >> portability issues. =A0If it were just unix, that would be one thing. >> But maintaining this and a Windows alternative, and I have no idea >> what that is, is not worth it IMO. > > > Yes, portability is questionable. Though if we had a good patch that allo= ws > to do it, I don't think it would be too bad to have it. Even Unix-only mi= ght > be (again, if enough people need it) fine, if we could use the data prope= rly > in timelib functions. By portability it is not (only) about APIs, APIs wrapping is easy these days, even on Windows. But the actual problem is to get a consistent and constantly updated set of data, reliable data. Data that applications can use blindly on any platforms without having to worry about bad information, as long as they use the latest PHP or timezone release (via PECL for example). And that, as stated earlier, is why we should not provide any alternative as any other solutions failed so far. It is also even less important as Oleg's target is the developer environment. If a developer cannot set his TZ correctly in a php.ini or in his application on his development box, then something is wrong there, but not in php :) For production server, I would never ever suggest to use the system's TZ, no matter the OS/distros/etc.. Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org