Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68966 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61568 invoked from network); 9 Sep 2013 12:51:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2013 12:51:26 -0000 Authentication-Results: pb1.pair.com header.from=martin.keckeis1@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=martin.keckeis1@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.169 as permitted sender) X-PHP-List-Original-Sender: martin.keckeis1@gmail.com X-Host-Fingerprint: 209.85.214.169 mail-ob0-f169.google.com Received: from [209.85.214.169] ([209.85.214.169:38390] helo=mail-ob0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/C6-03199-D44CD225 for ; Mon, 09 Sep 2013 08:51:26 -0400 Received: by mail-ob0-f169.google.com with SMTP id es8so5893588obc.0 for ; Mon, 09 Sep 2013 05:51:23 -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=VRXKzfN8sc3PZcPHxJZOb3e9M9Ovcp9deoxAiUiJ9yE=; b=NfddqwVRVgYjufjolzbOCnx8hWi7hHEtgaXdy2VncGrIUl0LGaWXzEAR5+BdnioTUM oweKE12SRHuRMDA8tCWIicuTIiE7UL79VP7H04YPfgwPCL0r+bh1LFXWc8eeEnwkompO QUfxKE6xPNhaH6/PCz6bH4vRVigj/8ePmcUsylCbELMWnulirIRqfCZOe5RBb0AHxQfq 7XIcY0oRujGCMIk+6+24kjn18FjT6moWxR2TvB5jLu4dtsleuUI9VPM09qEIQvVG+N9Q YEJLavWN4xe6EBfTB+uzlINae+dHAPv26X/WxO2ceX0E+lsAetCMudbMqG2bmEKsTekd xrSQ== MIME-Version: 1.0 X-Received: by 10.60.62.101 with SMTP id x5mr11115345oer.24.1378731083067; Mon, 09 Sep 2013 05:51:23 -0700 (PDT) Received: by 10.182.26.112 with HTTP; Mon, 9 Sep 2013 05:51:22 -0700 (PDT) In-Reply-To: <522DB9A8.7040303@lsces.co.uk> References: <522DB9A8.7040303@lsces.co.uk> Date: Mon, 9 Sep 2013 14:51:22 +0200 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=089e012953ac72754b04e5f2d8cc Subject: Re: [PHP-DEV] 5.4 DateTimeZone: Supported timezones have changed From: martin.keckeis1@gmail.com (Martin Keckeis) --089e012953ac72754b04e5f2d8cc Content-Type: text/plain; charset=UTF-8 Hi lester, 2013/9/9 Lester Caine > Martin Keckeis wrote: > >> Hello together, >> >> just wanted to mention, what the list of supported Timezones has changedin >> 5.4. >> >> It's already mentioned here, that all "special" timezones, expect of UTC >> are deprecated: >> http://www.php.net/manual/en/**timezones.others.php >> >> But couldn't found that in the upgrade guide...so i used CET somewhere in >> my code and didn't found the error soon.... >> >> A short note in the upgrade guid would be great! >> > > This is not so much an 'upgrade' note, but rather a update to the timezone > library in general. The tz database is being 'rationalised' at the moment, > and the base list of zone names simplified, with many of these only being > retained for 'backwards' compatibility. Derick will probably add a comment, > but we can expect a few more changes over the next couple of updates to the > tz data. > > Okay no problem, just wanted to mention it. If you use a deprecated Timezone somewhere and don't know it, it's hard to track down...(no exception) I only found it "randomly" today, that i've used it there and all time data in the database are not correct... If you use something like: \DateTime::createFromFormat('Y-m-d H:i:s', '2013-09-09 14:49:00', new DateTimeZone('CET')) Just the default timezone from ini will be used and therefor the dateTime value is wrong if you save it or display it somewhere... --089e012953ac72754b04e5f2d8cc--