Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67501 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62744 invoked from network); 24 May 2013 18:15:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 18:15:22 -0000 Received: from [127.0.0.1] ([127.0.0.1:6400]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 31/AE-20943-93EAF915 for ; Fri, 24 May 2013 14:15:22 -0400 Authentication-Results: pb1.pair.com header.from=bof@bof.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bof@bof.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: bof@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:36708] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/9E-20943-D2DAF915 for ; Fri, 24 May 2013 14:10:55 -0400 Received: (qmail 18928 invoked by uid 1009); 24 May 2013 20:10:50 +0200 Received: from 209.85.220.170 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/17264. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.220.170):. Processed in 0.088713 secs); 24 May 2013 18:10:50 -0000 X-Antivirus-MYDOMAIN-Mail-From: bof@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.220.170):. Processed in 0.088713 secs Process 18920) Received: from mail-vc0-f170.google.com (gmail@bof.de@209.85.220.170) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 24 May 2013 20:10:50 +0200 Received: by mail-vc0-f170.google.com with SMTP id gf11so3424460vcb.29 for ; Fri, 24 May 2013 11:10:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=U+KfSgOld5BQR7PItIePBxMqM2exz1t4FunliVd8Qv4=; b=jcCg6X3NXMYICV8Gn8Au7rIiWPS9YHFezTUmbOUrpqq56o4Y0Da0VSj18d9ejc3O2J UcvkeIUvc6CeuXUuWGcvgEukBisj5offEBd/CkZ+OoSP6kC1kb/VP174B35mQOTgYfB/ jTvBk7WenhAfzg1CoYLTwNmKGUBptzzV9tKu5PDrnNpkn2D1JD++DqiuuxOPZEqM9j2I gJlbbrVhGKrRbeYrLwbbtEPwu+Ihh2ax3+ibxPOc6MUX2bTHuiA4kTJFmxyaVcRiyyvM cOLhHMCrOUNNfDve2aUaB54esQ/kWVNfRO/691mHRpkHNxqs3P82g/V9w688JHXtA1w+ gWKg== MIME-Version: 1.0 X-Received: by 10.58.164.131 with SMTP id yq3mr9396034veb.31.1369419049064; Fri, 24 May 2013 11:10:49 -0700 (PDT) Received: by 10.52.228.226 with HTTP; Fri, 24 May 2013 11:10:48 -0700 (PDT) Received: by 10.52.228.226 with HTTP; Fri, 24 May 2013 11:10:48 -0700 (PDT) In-Reply-To: References: <519E77B4.2050503@sugarcrm.com> <519EFF2B.501@gmail.com> Date: Fri, 24 May 2013 20:10:48 +0200 Message-ID: To: Derick Rethans Cc: =?ISO-8859-2?Q?Leszek_Krupi=F1ski?= , internals Content-Type: multipart/alternative; boundary=047d7b671ed0f7e90f04dd7ab720 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: bof@bof.de (Patrick Schaaf) --047d7b671ed0f7e90f04dd7ab720 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 24.05.2013 18:45 schrieb "Derick Rethans" : > > On Fri, 24 May 2013, Leszek Krupi=C5=84ski wrote: > > > I was wondering - why not get time zone info from operating system? It'= s > > should be quite easy on both *nixes and Windows. That way default value would > > be "from operating system", with possibility to override it in .ini. > > You can't, as the OS doesn't give you the timezone identifier in a > portable way. Couldn=C2=B4t the default, in the absense of an .ini setting, be to use localtime(), i.e. whatever libc does, with the timezone _identifier_ being some string like "OS", "System", or "Localtime" - and we could then also use that identifier in .ini or ini_set to precisely say "use the same timezone as all the other libc using programs on this system". best regards Patrick --047d7b671ed0f7e90f04dd7ab720--