Skip to content

Commit

Permalink
Fix for JRUBY-3698: RubyDateFormat.java does ont handle %R specifier …
Browse files Browse the repository at this point in the history
…in strftime
  • Loading branch information
headius committed May 27, 2009
1 parent a3d6bec commit 46598e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/org/jruby/util/RubyDateFormat.java
Expand Up @@ -196,6 +196,11 @@ private void compilePattern(String pattern) {
case 'p':
compiledPattern.add(new Token(FORMAT_MERIDIAN));
break;
case 'R':
compiledPattern.add(new Token(FORMAT_HOUR));
compiledPattern.add(new Token(FORMAT_STRING, ":"));
compiledPattern.add(new Token(FORMAT_MINUTES));
break;
case 'S':
compiledPattern.add(new Token(FORMAT_SECONDS));
break;
Expand Down

0 comments on commit 46598e4

Please sign in to comment.