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 4159959 commit e6c5117Copy full SHA for e6c5117
src/main/java/org/truffleruby/core/time/GetTimeZoneNode.java
@@ -81,18 +81,14 @@ protected TimeZoneAndName getTimeZone(Object tz) {
81
82
if (tz == nil) {
83
// $TZ is not set, use the system timezone
84
- return new TimeZoneAndName(getSystemTimeZone());
+ return new TimeZoneAndName(getContext().getEnv().getTimeZone());
85
} else if (libString.isRubyString(tz)) {
86
return parse(tzString);
87
} else {
88
throw CompilerDirectives.shouldNotReachHere();
89
}
90
91
92
- private static ZoneId getSystemTimeZone() {
93
- return ZoneId.systemDefault();
94
- }
95
-
96
private static final Map<String, String> LONG_TZNAME = Helpers.map(
97
"MET",
98
"CET", // JRUBY-2759
0 commit comments