Closed sactor closed 2 years ago
I attempted to fix the timezone refresh problem myself by using a similar approach as this: https://github.com/bnoordhuis/io.js/commit/2eb2b970a58af4483e498d2ffa3de80b82ee309e
I couldn't get it to work even with using tzset()
before v8::Date::DateTimeConfigurationChangeNotification(c->isolate)
in v8js_v8.cc. Does anyone have an idea why this used to work (the test passes with v8 6.6) but now fails? Abbreviation problem is secondary, it's important that it's possible to switch the timezone on the fly.
There are ways to work around the problem, but there is a lot of legacy code that depends on it working like it used to. This is blocking from moving above v8 6.6.
I'm working on this issue.
closed via #481
Starting with v8 6.7 timezone don't seem to be updated when TZ environment variable is changed.
In addition timezones.phpt is testing for old style toString() in which timezone is abbreviated.
The passing output of the test with v8 6.6 and below is:
The failing output of the test with v8 6.7 and above is: