Project

General

Profile

Actions

Bug #17504

closed

Allow UTC offset without colons per ISO-8601

Added by nobu (Nobuyoshi Nakada) over 3 years ago. Updated over 1 year 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 2 (1 open1 closed)

Related to Ruby master - Feature #17485: Keyword argument for timezone in Time.newClosedActions
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
Like0Like0Like0Like0Like0Like0Like0Like0Like0