Skip to content
Browse files

Replace '%e' from long and short time formats as Windows does not sup…

…port it. Closes #2344.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent eb2fbf0 commit 847a3232864a91fa69bb82e43b488fbd090b64f6 Marcel Molina committed Oct 10, 2005
Showing with 4 additions and 2 deletions.
  1. +2 −0 activesupport/CHANGELOG
  2. +2 −2 activesupport/lib/active_support/core_ext/time/conversions.rb
View
2 activesupport/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Replace '%e' from long and short time formats as Windows does not support it. #2344. [Tom Ward <tom@popdog.net>]
+
* Added to_s(:db) to Range, so you can get "BETWEEN '2005-12-10' AND '2005-12-12'" from Date.new(2005, 12, 10)..Date.new(2005, 12, 12) (and likewise with Times)
* Moved require_library_or_gem into Kernel. #1992 [Michael Schuerig <michael@schuerig.de>]
View
4 activesupport/lib/active_support/core_ext/time/conversions.rb
@@ -7,8 +7,8 @@ module Time #:nodoc:
module Conversions
DATE_FORMATS = {
:db => "%Y-%m-%d %H:%M:%S",
- :short => "%e %b %H:%M",
- :long => "%B %e, %Y %H:%M",
+ :short => "%d %b %H:%M",
+ :long => "%B %d, %Y %H:%M",
:rfc822 => "%a, %d %b %Y %H:%M:%S %z"
}

0 comments on commit 847a323

Please sign in to comment.
Something went wrong with that request. Please try again.