Project

General

Profile

Actions

Bug #20797

closed

UTC offset seconds part is not checked

Added by nobu (Nobuyoshi Nakada) 17 days ago. Updated 13 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:119519]

Description

While this raise ArgumentError:

Time.new(2024, 12, 25, 0, 0, 0, "+09:99") # ... expected for utc_offset (ArgumentError)

This is obviously weird.

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 the former.


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #18033: Time.new to parse a stringClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0