diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/java/util/DateNativeGenerator.java b/teavm-classlib/src/main/java/org/teavm/classlib/java/util/DateNativeGenerator.java index bdba21eaf..b8d5e4e7b 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/java/util/DateNativeGenerator.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/java/util/DateNativeGenerator.java @@ -94,7 +94,7 @@ public class DateNativeGenerator implements Generator, DependencyPlugin { } private void generateBuildNumericUTC(GeneratorContext context, SourceWriter writer) throws IOException { - writer.append("Date.UTC(").append(context.getParameterName(1)); + writer.append("return Date.UTC(").append(context.getParameterName(1)); for (int i = 2; i <= 6; ++i) { writer.append(',').ws().append(context.getParameterName(i)); }