Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56925 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53133 invoked from network); 14 Dec 2011 22:24:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2011 22:24:06 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:48604] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/88-02473-50229EE4 for ; Wed, 14 Dec 2011 17:24:05 -0500 Received: by faan2 with SMTP id n2so1977977faa.29 for ; Wed, 14 Dec 2011 14:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=rfJNUVYtSwya3qOsRtwpiqPI9C30XImq16eke8BH3lk=; b=KFtW30P3RA+w6Md3tn+SdDxpxcljzIAW7bTa6inl15CZcdDp9JuEKELhkfxzTCKc52 LVbgPhg3UyWuNc8PHPQ1h6+RcGq3XekwGhFfplnNoj/4Qn3Jd+HV2WdBSi27smz9BysF wBFAyLmpTts7AvUWpJe6PlihlFguDREyeVE6Y= Received: by 10.180.104.70 with SMTP id gc6mr812871wib.42.1323901442443; Wed, 14 Dec 2011 14:24:02 -0800 (PST) Received: from [192.168.1.26] (161.red-80-28-67.adsl.dynamic.ccgg.telefonica.net. [80.28.67.161]) by mx.google.com with ESMTPS id o3sm5602525wiy.14.2011.12.14.14.23.58 (version=SSLv3 cipher=OTHER); Wed, 14 Dec 2011 14:23:59 -0800 (PST) Message-ID: <4EE922F4.40602@gmail.com> Date: Wed, 14 Dec 2011 23:28:04 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: Will Fitch CC: Stas Malyshev , 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Local time zone From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) 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. At least when it's not multithreaded. And if the host doesn't contain timezone data (embedded systems, perhaps), that "System" zone could simply default to UTC.