Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix for JRUBY-3698: RubyDateFormat.java does ont handle %R specifier …

…in strftime
  • Loading branch information...
commit 46598e4625cd1f3d4aec40596e14e4618a6df46b 1 parent a3d6bec
Charles Oliver Nutter authored May 27, 2009

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  src/org/jruby/util/RubyDateFormat.java
5  src/org/jruby/util/RubyDateFormat.java
@@ -196,6 +196,11 @@ private void compilePattern(String pattern) {
196 196
                     case 'p':
197 197
                         compiledPattern.add(new Token(FORMAT_MERIDIAN));
198 198
                         break;
  199
+                    case 'R':
  200
+                        compiledPattern.add(new Token(FORMAT_HOUR));
  201
+                        compiledPattern.add(new Token(FORMAT_STRING, ":"));
  202
+                        compiledPattern.add(new Token(FORMAT_MINUTES));
  203
+                        break;                        
199 204
                     case 'S':
200 205
                         compiledPattern.add(new Token(FORMAT_SECONDS));
201 206
                         break;

0 notes on commit 46598e4

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