Skip to content

Commit a2c715d

Browse files
committed
Fix Time#localtime(0) being treated as UTC.
1 parent 696b78d commit a2c715d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

core/src/main/java/org/jruby/RubyTime.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,6 @@ public RubyTime localtime(ThreadContext context, IRubyObject arg) {
632632

633633
if (zone == null) {
634634
throw invalidUTCOffset(context);
635-
} else if (zone == DateTimeZone.UTC) {
636-
return gmtime(context);
637635
}
638636

639637
return adjustTimeZone(context, zone, true);

0 commit comments

Comments
 (0)