Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56926 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55334 invoked from network); 14 Dec 2011 22:45:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2011 22:45:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.133 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.133 smtp133.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.133] ([67.192.241.133:50538] helo=smtp133.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/D8-02473-BE629EE4 for ; Wed, 14 Dec 2011 17:45:00 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp23.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 89A9E2F8335; Wed, 14 Dec 2011 17:44:56 -0500 (EST) X-Virus-Scanned: OK Received: by smtp23.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 214F52F8198; Wed, 14 Dec 2011 17:44:56 -0500 (EST) Message-ID: <4EE926E7.3090607@sugarcrm.com> Date: Wed, 14 Dec 2011 14:44:55 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= CC: Will Fitch , Oleg Oshmyan , Derick Rethans , PHP Developers Mailing List References: <8D58A664-7250-4FEE-9424-2D2DEFC69308@inbox.lv> <1C397FE3-76E2-473B-B47F-194DAF3ACB39@inbox.lv> <4EE91556.3040909@sugarcrm.com> <4EE922F4.40602@gmail.com> In-Reply-To: <4EE922F4.40602@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Local time zone From: smalyshev@sugarcrm.com (Stas Malyshev) 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 mean "compiles and runs on each system", it means "reliably produces predictable and identical results on each target system". The case with *time system functions is very far from that. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227