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 #1

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Description updated (diff)
  • Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN to 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Related to Feature #17485: Keyword argument for timezone in Time.new added

Updated by matz (Yukihiro Matsumoto) over 3 years ago

Accepted.

Matz.

Actions #4

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Status changed from Open to Closed

Applied in changeset git|9441f3f97087a4325ee80911859d37da41fa5050.


Allow UTC offset without colons per ISO-8601 [Bug #17504]

Updated by naruse (Yui NARUSE) about 3 years ago

  • Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED to 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED, 3.0: DONE

Updated by nagachika (Tomoyuki Chikanaga) about 3 years ago

  • Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED, 3.0: DONE to 2.5: REQUIRED, 2.6: REQUIRED, 2.7: DONE, 3.0: DONE

Updated by usa (Usaku NAKAMURA) about 3 years ago

  • Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: DONE, 3.0: DONE to 2.5: REQUIRED, 2.6: DONE, 2.7: DONE, 3.0: DONE
Actions #8

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Has duplicate Misc #19121: Time: utc offset argument's formats "+/-HH", "+/-HHMM", "+/-HHMMSS" are supported differently added

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Backport changed from 2.5: REQUIRED, 2.6: DONE, 2.7: DONE, 3.0: DONE to 2.5: REQUIRED, 2.6: DONE, 2.7: DONE, 3.0: REQUIRED

3.0 branch has not backported 9441f3f97087a4325ee80911859d37da41fa5050.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0