Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyTime.java
Original file line number Diff line number Diff line change
@@ -428,7 +428,7 @@ public RubyTime getlocal() {

@JRubyMethod(name = "getlocal", compat = RUBY1_9, optional = 1)
public RubyTime getlocal19(ThreadContext context, IRubyObject[] args) {
if (args.length == 0) {
if (args.length == 0 || args[0].isNil()) {
return newTime(getRuntime(), dt.withZone(getLocalTimeZone(getRuntime())), nsec);
} else {
Matcher tzMatcher = TIME_OFFSET_PATTERN.matcher(args[0].toString());

0 comments on commit 8fe3ae7

Please sign in to comment.