Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…in strftime
  • Loading branch information...
commit 46598e4625cd1f3d4aec40596e14e4618a6df46b 1 parent a3d6bec
@headius headius authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/org/jruby/util/RubyDateFormat.java
View
5 src/org/jruby/util/RubyDateFormat.java
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.