summary refs log tree commit
diff options
context:
space:
mode:
authorMichael Fellinger <m.fellinger@gmail.com>2010-12-11 16:21:52 +0900
committerMichael Fellinger <m.fellinger@gmail.com>2010-12-11 16:21:52 +0900
commit9ad83ca55dad90b87a4484cd1003fd3527fd1727 (patch)
tree3ff6fb5a3c3a85a3ee68d830fc825db3f740a977
parentb79ea447e8d0d9ee7abd641baa8c535e4d2e3a2c (diff)
downloadrack-9ad83ca55dad90b87a4484cd1003fd3527fd1727.tar.gz
Replace %T with %H:%M:%S for compatibility on Windows
-rw-r--r--lib/rack/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb
index a464254e..c44bae8f 100644
--- a/lib/rack/utils.rb
+++ b/lib/rack/utils.rb
@@ -258,7 +258,7 @@ module Rack
     def rfc2822(time)
       wday = Time::RFC2822_DAY_NAME[time.wday]
       mon = Time::RFC2822_MONTH_NAME[time.mon - 1]
-      time.strftime("#{wday}, %d-#{mon}-%Y %T GMT")
+      time.strftime("#{wday}, %d-#{mon}-%Y %H:%M:%S GMT")
     end
     module_function :rfc2822