Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114670 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3767 invoked from network); 30 May 2021 21:57:47 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 May 2021 21:57:47 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BB2BB1804BE for ; Sun, 30 May 2021 15:10:24 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: ** X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_05,SPF_HELO_PASS, SPF_NEUTRAL,URIBL_SBL,URIBL_SBL_A autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Sun, 30 May 2021 15:10:24 -0700 (PDT) Received: from [192.168.42.60] (host81-159-84-188.range81-159.btcentralplus.com [81.159.84.188]) by xdebug.org (Postfix) with ESMTPSA id 078FD10C01C; Sun, 30 May 2021 23:10:22 +0100 (BST) Date: Sun, 30 May 2021 23:10:21 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net,Benjamin Morel ,PHP Internals Message-ID: <9ECA71F4-F57A-4184-9713-0EF8B7131F97@php.net> Subject: Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds From: derick@php.net (Derick Rethans) On 30 May 2021 22:45:12 BST, Benjamin Morel = wrote: >Hi internals, > >An issue was brought up >on >my date-time library, that boils down to the fact that DateTimeZone >silently falls back to UTC when providing an offset with seconds: > >(new DatetimeZone('+01:45:30'))->getName(); // 00:00 > >https://3v4l=2Eorg/9ZrK6 > >If this is unsupported (this would make sense), should it throw an >exception instead? > >Thank you for your time=2E > >=E2=81=A0=E2=80=94 Benjamin I can't think of why this couldn't work=2E Duke a bug report please at bug= s=2Ephp=2Enet?