Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129805 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 975CC1A00BD for ; Wed, 21 Jan 2026 15:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769008256; bh=3OmlPiP1HK6FzI9SGz5qluwZ5ztGeGjOriefjOac9CA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UmokyIawsg5J3/BahbMP2NKqKcErzzXbJYKoSvn/0mZLPGZO3swOaZxqe2rGF8i5z jj4WTjx+Af/NIvXSsx8b9uJyHhCOPtzRcCWk00SeyI1mNPdfpMX1BDTAJqkEb0+Tv2 zCSJocXC+rcqzgVPMt9ofakYy4UIVfKOV3opR6MAvjlew2ylzM3FwJM1ilNfURK+lN xR21QzGZ6h9WKaZeiQY3pkYer2i7+uq7BWhyf95DJ70UZXUfd11eFzwcOXtmKYc3xU ioMcGUL/O4Ac4XgkMGI16kBp1HaubxKwNKFfcsVSwKLvZM64cDEQPCZzAkqmd1um4/ ecQ9kqAjtg3gA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BC1651801EF for ; Wed, 21 Jan 2026 15:10:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 21 Jan 2026 15:10:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1769008231; bh=F5RraphH88UKhuYx/ThTstGXeiOEppbkq0mMkj98qy8=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=TicuItBCeYn6Fvc/dTFE0wR2l4BAM3oYcWaeDn0NMlCDwZxZi1S4CMKRpSU32I+oH f+YXaUwc7z+2E6mFvfpp8DCOe9HjWA5D6FvDc2PREAmrXRGlkkbATIivsaNUlLRq3O zI/cJcY4yqIHNTauxyLTZkn1RFx4q1kwmEde8pAXTezyWaI6gK58L4aVj4la0YLN1Y 88IM5Fw7igwrKunyY6elacII0Af6IK3wou3DGNLbL49izra11YcnD1LBXteE8PQJxD 4sb5Fyo61H4/tcmMuAcZid80K4Q7MQHwF8uvySdcGaFerZm2w1h9P75ba4e+RyPFKs FMot4p8bBMtkA== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 21 Jan 2026 16:10:31 +0100 To: Derick Rethans Cc: Kamil Tekiela , PHP internals Subject: Re: [PHP-DEV] Was deprecation of DATE_RFC7231 and DateTimeInterface::RFC7231 a mistake? In-Reply-To: <4059bd56-127a-2f9b-9fcf-1b875e249c8d@php.net> References: <4059bd56-127a-2f9b-9fcf-1b875e249c8d@php.net> Message-ID: <549592dcce097f5efee25e1fcb2e55db@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2026-01-21 15:47, schrieb Derick Rethans: > possibility to change the timezone to UTC. So I disagree, as people > rightfully should have expected PHP to handle a specific pre-cooked > format to behave as the RFC that is named after ought to behave. I agree with Derick's entire email, but particularly this part: Providing some helper constant that requires you to perform an important “extra step” with nothing forcing you to perform that extra step and where not performing that extra step will result in behavior that is subtly incorrect is dangerous API design. The further away from UTC your “default timezone” is, the more wrong will the results be. This can have significant consequences on the behavior of your application, e.g. cookies expiring too soon or too late and confusing HTTP caching behavior. Best regards Tim Düsterhus