Project

General

Profile

Actions

Bug #17504

closed

Allow UTC offset without colons per ISO-8601

Added by nobu (Nobuyoshi Nakada) almost 4 years ago. Updated about 2 years ago.

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

Description

Although ISO-8601 allows UTC offset to be +HHMM as well as +HH:MM, Time.new, Time#getlocal etc reject that format as invalid.
I think this is a bug, especially as far as even Time#inspect uses it.

https://github.com/ruby/ruby/pull/4020


Related issues 3 (1 open2 closed)

Related to Ruby master - Feature #17485: Keyword argument for timezone in Time.newClosedActions
Related to Ruby master - Feature #18033: Time.new to parse a stringClosedActions
Has duplicate Ruby master - Misc #19121: Time: utc offset argument's formats "+/-HH", "+/-HHMM", "+/-HHMMSS" are supported differentlyOpenActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0