From: "teleological (Riley Lynch)" Date: 2013-07-08T00:31:57+09:00 Subject: [ruby-core:55831] [ruby-trunk - Bug #8608][Open] Inconsistent parse of DateTime zone specification with seconds Issue #8608 has been reported by teleological (Riley Lynch). ---------------------------------------- Bug #8608: Inconsistent parse of DateTime zone specification with seconds https://bugs.ruby-lang.org/issues/8608 Author: teleological (Riley Lynch) Status: Open Priority: Normal Assignee: Category: ext Target version: ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.1] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN When a time zone specification has a single-digit hour and includes minutes and seconds without colons, the minutes offset is overwritten by the seconds offset. In this example +3:30 is incorrectly parsed as +3:00: DateTime.parse('6 Nov 1973 18:45 +33000') # => # This defect is not present when the hour is specified by two digits: DateTime.parse('7 Nov 1973 04:00 +124500') # => # Attached is a patch which corrects this issue. -- http://bugs.ruby-lang.org/