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

Updated by nobu (Nobuyoshi Nakada) almost 4 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) almost 4 years ago

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

Updated by nobu (Nobuyoshi Nakada) almost 4 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) almost 4 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) over 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) over 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) about 2 years ago

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

Updated by nobu (Nobuyoshi Nakada) about 2 years 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 #10

Updated by Eregon (Benoit Daloze) about 1 month ago

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0