File tree 2 files changed +0
-33
lines changed
2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change 80
80
#include < stdlib.h>
81
81
#include < string.h>
82
82
#include < sys/types.h>
83
- #include < time.h> // tzset(), _tzset()
84
83
85
84
#include < string>
86
85
#include < vector>
@@ -136,7 +135,6 @@ using v8::Array;
136
135
using v8::ArrayBuffer;
137
136
using v8::Boolean ;
138
137
using v8::Context;
139
- using v8::Date;
140
138
using v8::EscapableHandleScope;
141
139
using v8::Exception;
142
140
using v8::Float64Array;
@@ -2690,10 +2688,6 @@ static void EnvSetter(Local<Name> property,
2690
2688
node::Utf8Value key (info.GetIsolate (), property);
2691
2689
node::Utf8Value val (info.GetIsolate (), value);
2692
2690
setenv (*key, *val, 1 );
2693
- if (key.length () == 2 && key[0 ] == ' T' && key[1 ] == ' Z' ) {
2694
- tzset ();
2695
- Date::DateTimeConfigurationChangeNotification (info.GetIsolate ());
2696
- }
2697
2691
#else // _WIN32
2698
2692
node::TwoByteValue key (info.GetIsolate (), property);
2699
2693
node::TwoByteValue val (info.GetIsolate (), value);
@@ -2702,10 +2696,6 @@ static void EnvSetter(Local<Name> property,
2702
2696
if (key_ptr[0 ] != L' =' ) {
2703
2697
SetEnvironmentVariableW (key_ptr, reinterpret_cast <WCHAR*>(*val));
2704
2698
}
2705
- if (key.length () == 2 && key[0 ] == L' T' && key[1 ] == L' Z' ) {
2706
- _tzset ();
2707
- Date::DateTimeConfigurationChangeNotification (info.GetIsolate ());
2708
- }
2709
2699
#endif
2710
2700
// Whether it worked or not, always return value.
2711
2701
info.GetReturnValue ().Set (value);
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments