Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix JRUBY-4842: Time#utc_offset is incorrect in small time range. Spe…

…cs are in RubySpec a186c01.
  • Loading branch information...
commit fe7990091068c7603961457b40d0b7cf1ab4ae23 1 parent 0277221
@BanzaiMan BanzaiMan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/org/jruby/RubyTime.java
View
2  src/org/jruby/RubyTime.java
@@ -602,7 +602,7 @@ public RubyRational subsec() {
@JRubyMethod(name = {"gmt_offset", "gmtoff", "utc_offset"})
public RubyInteger gmt_offset() {
- int offset = dt.getZone().getOffsetFromLocal(dt.getMillis());
+ int offset = dt.getZone().getOffset(dt.getMillis());
return getRuntime().newFixnum((int)(offset/1000));
}
Please sign in to comment.
Something went wrong with that request. Please try again.