Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67480 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92520 invoked from network); 24 May 2013 07:11:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 07:11:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.178 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.178 mail-ob0-f178.google.com Received: from [209.85.214.178] ([209.85.214.178:34481] helo=mail-ob0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/31-20943-D921F915 for ; Fri, 24 May 2013 03:11:25 -0400 Received: by mail-ob0-f178.google.com with SMTP id v19so5087392obq.37 for ; Fri, 24 May 2013 00:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kyZhijPsZEJhK1zaTBF4hoTcjJl7tFa+VXcQDu7wccg=; b=1KFCIrfJ/JA+QEkdN1/r5qBN2xYCh0vy9AZRMKsJdS61hmZDQ44VZiBiglHYRxVi9n 6w9Y6/KOf+IoWCp2aXLxDwou00IM7fYDjv4z3r0xeU/GFWUNlUz+Btq9QQR1zPZRAAY+ eXkVO0fmFSunDf+zNiMX5zbQaqzvqtPgt6rgNG4c6NKcdOPa4WsfvYfX5a6GDKjWhlYm rw2WiPRVSXC5gWF6MOvIyhln+AOyYjElOsnC/vZ7M69LB6As7JGWd3hYNpE6Bhr5Fvzs lDEhb7M089H5+4GByBRfstcQHJRWRZrSu2eUuJzIIh1XZ88cHHvLbRXosfFWnpI92JIr yuxw== MIME-Version: 1.0 X-Received: by 10.182.148.39 with SMTP id tp7mr11090720obb.15.1369379482597; Fri, 24 May 2013 00:11:22 -0700 (PDT) Received: by 10.76.150.193 with HTTP; Fri, 24 May 2013 00:11:22 -0700 (PDT) In-Reply-To: <519EFF2B.501@gmail.com> References: <519E77B4.2050503@sugarcrm.com> <519EFF2B.501@gmail.com> Date: Fri, 24 May 2013 01:11:22 -0600 Message-ID: To: =?ISO-8859-2?Q?Leszek_Krupi=F1ski?= Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: morrison.levi@gmail.com (Levi Morrison) >>> The "U" in UTC *does* stand for "Universal," after all. It's a >>> sensible default and as such shouldn't >> >> I don't think it's a sensible default - people don't actually use UTC >> when considering dates. A minority of people can use timezone that >> coincides with UTC, but not very many use actual UTC. > > 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. I believe this may have been the behavior at some point; at least date_default_timezone_get change in PHP 5.4 to no longer includes info from the OS.