From: "jamesst20 (James St-Pierre) via ruby-core" Date: 2025-02-18T14:40:03+00:00 Subject: [ruby-core:121101] [Ruby master Bug#21147] [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1 Issue #21147 has been reported by jamesst20 (James St-Pierre). ---------------------------------------- Bug #21147: [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1 https://bugs.ruby-lang.org/issues/21147 * Author: jamesst20 (James St-Pierre) * Status: Open * ruby -v: ruby 3.3.7 (2025-01-15 revision be31f993d7) [arm64-darwin24], ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- ``` ruby a = Time.zone.now.to_date b = Time.zone.now.to_date # Ruby 3.3.7 (a..b).to_a => [Tue, 18 Feb 2025] # Ruby 3.4.1 (a..b).to_a => [] ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/