We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b909f commit 35d5ca1Copy full SHA for 35d5ca1
graal-js/src/com.oracle.truffle.js.parser/src/com/oracle/truffle/js/parser/date/DateParser.java
@@ -750,7 +750,8 @@ private boolean patchResult(final boolean strict) {
750
}
751
752
private boolean isUTCDefaultTimezone(boolean dateOnly, boolean strict) {
753
- return (strict || realm.getContext().getLanguageOptions().useUTCForLegacyDates()) && dateOnly;
+ return realm.getContext().isOptionNashornCompatibilityMode() ? strict :
754
+ (dateOnly && (strict || realm.getContext().getLanguageOptions().useUTCForLegacyDates()));
755
756
757
private static void addName(final String str, final int type, final int value) {
0 commit comments