Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57255 invoked from network); 14 Dec 2011 22:58:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2011 22:58:04 -0000 Authentication-Results: pb1.pair.com header.from=will.fitch@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=will.fitch@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: will.fitch@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:48372] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/39-02473-AF929EE4 for ; Wed, 14 Dec 2011 17:58:03 -0500 Received: by eaai11 with SMTP id i11so1383238eaa.29 for ; Wed, 14 Dec 2011 14:57:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=koGidkDWc/1YKx8+k2i8V3huAoitqO0AFquWwR7+4i0=; b=iEFjfoxJlRCCZHIMi7eFsDW/MQbMtggCasDlQw7/kJ+DLD3luRR1LbpoQOkoTjnFK4 EFytLsiACVbPor5zqvRTuuicMDlgdGRXimT/P1HtmNNOTBSdfW5+oabRoD/qEeauFAaf wbp7SeJbjwMAGSpP0A0nN+Gxu7vp+QUjEmvQY= Received: by 10.204.34.148 with SMTP id l20mr147587bkd.55.1323903477709; Wed, 14 Dec 2011 14:57:57 -0800 (PST) References: <8D58A664-7250-4FEE-9424-2D2DEFC69308@inbox.lv> <1C397FE3-76E2-473B-B47F-194DAF3ACB39@inbox.lv> <4EE91556.3040909@sugarcrm.com> <4EE922F4.40602@gmail.com> <4EE926E7.3090607@sugarcrm.com> In-Reply-To: <4EE926E7.3090607@sugarcrm.com> Mime-Version: 1.0 (1.0) Date: Wed, 14 Dec 2011 17:57:54 -0500 Message-ID: <-6000738529662869882@unknownmsgid> To: Stas Malyshev Cc: =?UTF-8?B?w4FuZ2VsIEdvbnrDoWxleg==?= , Oleg Oshmyan , Derick Rethans , PHP Developers Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Local time zone From: will.fitch@gmail.com (Will Fitch) If enough interest is in this, I'll write a patch with the expectation for unix based systems initially. I'll have to research the windows support and reliability. Who would care to have this (I personally will still be relying on ini)? Sent from my iPhone On Dec 14, 2011, at 5:44 PM, Stas Malyshev wrote: > Hi! > >> On 14/12/11 22:53, Will Fitch wrote: >>> I believe he's referring to sys/time.h, but this introduces >>> portability issues. If 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. >> is present in *nix, Windows, and probably everywhere php >> runs. As it provides mktime/gmtime/localtime, it should be possible >> to portably deal with timezones. > > You seem to be misunderstanding what "portable" means here. It doesn't me= an "compiles and runs on each system", it means "reliably produces predicta= ble and identical results on each target system". The case with *time syste= m functions is very far from that. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227