mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/date/lib/date/format.rb (_httpdate): omitted to call zone_to_diff.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ca5401e481
commit
d54240d35e
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun May 8 17:04:55 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/lib/date/format.rb (_httpdate): omitted to call zone_to_diff.
|
||||
|
||||
Sun May 8 16:56:19 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/date_core.c (date_s_test_*): use macros.
|
||||
|
|
|
@ -419,7 +419,7 @@ class Date
|
|||
:min => $6.to_i,
|
||||
:sec => $7.to_i,
|
||||
:zone => $8,
|
||||
:offset => zone_to_diff($8)
|
||||
:offset => 0
|
||||
}
|
||||
elsif /\A\s*(#{Format::DAYS.keys.join('|')})\s*,\s+
|
||||
(\d{2})\s*-\s*
|
||||
|
@ -440,7 +440,7 @@ class Date
|
|||
:min => $6.to_i,
|
||||
:sec => $7.to_i,
|
||||
:zone => $8,
|
||||
:offset => zone_to_diff($8)
|
||||
:offset => 0
|
||||
}
|
||||
elsif /\A\s*(#{Format::ABBR_DAYS.keys.join('|')})\s+
|
||||
(#{Format::ABBR_MONTHS.keys.join('|')})\s+
|
||||
|
|
Loading…
Add table
Reference in a new issue