From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, T_SPF_PERMERROR,UNPARSEABLE_RELAY,URIBL_GREY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 4463C1F54E for ; Fri, 29 Jul 2022 23:07:07 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sendgrid.me header.i=@sendgrid.me header.b="DM8OCILI"; dkim-atps=neutral Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id AF9B6120F06; Sat, 30 Jul 2022 08:07:03 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id C050E120EFF for ; Sat, 30 Jul 2022 08:07:00 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendgrid.me; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc; s=smtpapi; bh=XSY02GwspSU9m8jVA8OY+/5fpB1mSovAOx2do0Pt61M=; b=DM8OCILIYqppRUxLgiHFCw/2Tg5O4lmKKNmKykaiy8HTXlt+r0tSnSiBEWAa3EGqf+Hm 52ZhmKOP+J+qPSs4h9xLqNY/Qg2J4CWCwNKuffOKrpXkUulh0HSMMADkMjgdBN96X5ATsx jefa/DGp27ShVZUTG+apPRSLD+y1vx/x8= Received: by filterdrecv-7787b7f4d9-j7r6q with SMTP id filterdrecv-7787b7f4d9-j7r6q-1-62E46812-65 2022-07-29 23:06:58.576417001 +0000 UTC m=+702050.059593077 Received: from herokuapp.com (unknown) by geopod-ismtpd-1-1 (SG) with ESMTP id 5RtL8vCnSxS3I8XKelE12A for ; Fri, 29 Jul 2022 23:06:58.557 +0000 (UTC) Date: Fri, 29 Jul 2022 23:06:58 +0000 (UTC) From: "jeremyevans0 (Jeremy Evans)" Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 18946 X-Redmine-Issue-Author: kei-p X-Redmine-Sender: jeremyevans0 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 85782 X-SG-EID: =?us-ascii?Q?zy3UxWTRryXcrjCh7SV39ZkShJ1PHkEOmoUEekBgd8G8RAJk=2FsUOlbLwuWEoNU?= =?us-ascii?Q?BxG3BBFmcsr21OPpQwa7zNRSwswJm1szgMd841w?= =?us-ascii?Q?HPqc4MYKuRHC1tzPgZqzeOQyW45J6B5YLd9MDs4?= =?us-ascii?Q?fQRArsLxH+IpKYUNUGp0RpO9QLNUXi59ftGLm0+?= =?us-ascii?Q?05AL0LcCXlrdMwwvaj2G4bHauZ0RbbmB39jp1GJ?= =?us-ascii?Q?+QslqAiYONF3xLhRGZiptQ20sJwpwlASfbbvH27?= =?us-ascii?Q?ORlGPyMQGQC4QNnDSSjeA=3D=3D?= To: ruby-dev@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-dev X-Mail-Count: 51188 Subject: [ruby-dev:51188] [Ruby master Bug#18946] Time#to_date returns incorrect date X-BeenThere: ruby-dev@ruby-lang.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Ruby developers \(Japanese\)" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Reply-To: "Ruby developers \(Japanese\)" Errors-To: ruby-dev-bounces@ruby-lang.org Sender: "ruby-dev" Issue #18946 has been updated by jeremyevans0 (Jeremy Evans). `Time#to_datetime` does not operate the same way, which seems like an undesirable inconsistency: ```ruby Time.local(1499, 12, 27).to_datetime => # Time.local(1499, 12, 27).to_date => # ``` ---------------------------------------- Bug #18946: Time#to_date returns incorrect date https://bugs.ruby-lang.org/issues/18946#change-98527 * Author: kei-p (Keisuke Ishizawa) * Status: Open * Priority: Normal * ruby -v: 3.1.2 * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Time#to_date returns incorrect date. Actual Behavior: ``` Time.local(1499, 12, 27).to_date => # ``` Expected Behavior: ``` Time.local(1499, 12, 27).to_date => # ``` -- https://bugs.ruby-lang.org/