From 65063bf2995938709b7c57f4fd9bc9542fbb0f23 Mon Sep 17 00:00:00 2001 From: tadf Date: Mon, 24 Nov 2008 16:26:00 +0000 Subject: * lib/date/format.rb (strftime): ignores '_' flag for %[LN]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/date/format.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/date/format.rb b/lib/date/format.rb index c8bc10fba..161cf8589 100644 --- a/lib/date/format.rb +++ b/lib/date/format.rb @@ -255,6 +255,7 @@ class Date when 'j'; emit_n(yday, 3, f) when 'k'; emit_a(hour, 2, f) when 'L' + f[:p] = nil w = f[:w] || 3 u = 10**w emit_n((sec_fraction * u).floor, w, f) @@ -262,6 +263,7 @@ class Date when 'M', 'OM'; emit_n(min, 2, f) when 'm', 'Om'; emit_n(mon, 2, f) when 'N' + f[:p] = nil w = f[:w] || 9 u = 10**w emit_n((sec_fraction * u).floor, w, f) -- cgit