[#119637] Behavior of raising from rescue blocks when multiple rescue blocks exist — Rodrigo Rosenfeld Rosas via ruby-core <ruby-core@...>
Hello, I couldn't find any documentation about the subject, so I thought
3 messages
2024/10/29
[ruby-core:119519] [Ruby master Bug#20797] UTC offset seconds is not checked
From:
"nobu (Nobuyoshi Nakada) via ruby-core" <ruby-core@...>
Date:
2024-10-14 04:38:47 UTC
List:
ruby-core #119519
Issue #20797 has been reported by nobu (Nobuyoshi Nakada).
----------------------------------------
Bug #20797: UTC offset seconds is not checked
https://bugs.ruby-lang.org/issues/20797
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Backport: 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED
----------------------------------------
While this raise ArgumentError:
```ruby
Time.new(2024, 12, 25, 0, 0, 0, "+09:99") # ... expected for utc_offset (ArgumentError)
```
This is obviously weird.
```ruby
Time.new(2024, 12, 25, 0, 0, 0, "+09:00:99").strftime("%::z") #=> "+09:01:39"
```
The latter should be an error as well as former.
--
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/