summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-08-10 17:14:23 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-08-10 17:15:13 -0700
commite6b06bc6c5393b31f3b45dbcd0deeb95271fc8b8 (patch)
tree95e1864de8c84dcd531a3c0440dd37f774d43bd7 /test
parente62cdd048872432ed9bcf20c0af70f0c4cd02a5e (diff)
downloadnode-new-e6b06bc6c5393b31f3b45dbcd0deeb95271fc8b8.tar.gz
win: fix test-process-env
Remove support for setting process.env.TZ as it doesn't seem we can do it x-platform without fixing V8.
Diffstat (limited to 'test')
-rw-r--r--test/simple/test-process-env.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/simple/test-process-env.js b/test/simple/test-process-env.js
index 725962d34b..0001fb3e20 100644
--- a/test/simple/test-process-env.js
+++ b/test/simple/test-process-env.js
@@ -25,10 +25,21 @@ process.env.TZ = 'Europe/Amsterdam';
assert = require('assert');
spawn = require('child_process').spawn;
+/* For the moment we are not going to support setting the timezone via the
+ * environment variables. The problem is that various V8 platform backends
+ * deal with timezone in different ways. The windows platform backend caches
+ * the timezone value while the Linux one hits libc for every query.
+
+https://github.com/joyent/node/blob/08782931205bc4f6d28102ebc29fd806e8ccdf1f/deps/v8/src/platform-linux.cc#L339-345
+https://github.com/joyent/node/blob/08782931205bc4f6d28102ebc29fd806e8ccdf1f/deps/v8/src/platform-win32.cc#L590-596
+
+
// time difference between Greenwich and Amsterdam is +2 hours in the summer
date = new Date('Fri, 10 Sep 1982 03:15:00 GMT');
assert.equal(3, date.getUTCHours());
assert.equal(5, date.getHours());
+*/
+
// changes in environment should be visible to child processes
if (process.argv[2] == 'you-are-the-child') {