summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-08 08:06:40 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-08 08:06:40 +0000
commitd54240d35e0ca6d090cbf325ee6d098b2cfd5af9 (patch)
treeb356633fa2f89a5a983886a8e48949fc64b0fd9a
parentca5401e481f9fbe5aa415882e96f3030b4253386 (diff)
* 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
-rw-r--r--ChangeLog4
-rw-r--r--ext/date/lib/date/format.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c4252a6f02b..f4be45fede1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/ext/date/lib/date/format.rb b/ext/date/lib/date/format.rb
index 5801c2620a6..84bc7df9c2c 100644
--- a/ext/date/lib/date/format.rb
+++ b/ext/date/lib/date/format.rb
@@ -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+