From: "nobu (Nobuyoshi Nakada)" Date: 2022-07-17T15:08:53+00:00 Subject: [ruby-core:109234] [Ruby master Bug#18922] Time at 24:00:00 UTC is not normalized Issue #18922 has been updated by nobu (Nobuyoshi Nakada). Backport changed from 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED to 2.7: REQUIRED, 3.0: DONTNEED, 3.1: REQUIRED Subject changed from Time at 24:00:00 UTC is not normalized since 3.1 to Time at 24:00:00 UTC is not normalized `Time.new(2000, 1, 1, 24, 0, 0, "Z").to_a[0, 6]` returns `[0, 0, 24, 1, 1, 2000]` since 2.7. It seems to be a much older bug, just that `"Z"` was not supported 2.6 and earlier and didn���t appear. ---------------------------------------- Bug #18922: Time at 24:00:00 UTC is not normalized https://bugs.ruby-lang.org/issues/18922#change-98368 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Priority: Normal * Backport: 2.7: REQUIRED, 3.0: DONTNEED, 3.1: REQUIRED ---------------------------------------- Reported by @mame. ```shell-session $ ruby3.0 -e 'p Time.new(2000, 1, 1, 24, 0, 0, "-00:00").to_a[0, 6]' [0, 0, 0, 2, 1, 2000] ``` ```shell-session $ ruby3.1 -e 'p Time.new(2000, 1, 1, 24, 0, 0, "-00:00").to_a[0, 6]' [0, 0, 24, 1, 1, 2000] ``` ```shell-session $ ruby3.2 -e 'p Time.new(2000, 1, 1, 24, 0, 0, "-00:00").to_a[0, 6]' [0, 0, 24, 1, 1, 2000] ``` -- https://bugs.ruby-lang.org/ Unsubscribe: