From 0052ee0a0ee2920a09c2f8336e203e03574a2af4 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Tue, 19 Nov 2013 18:55:28 -0800 Subject: [PATCH] don't assume PST/PDT when TZ is empty --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index c76acef..72e0243 100755 --- a/test/test.js +++ b/test/test.js @@ -39,7 +39,7 @@ assert.fn(lib.localizedStrftime) ok('Exports') /// time zones -if (!process.env.TZ || process.env.TZ == 'America/Vancouver') { +if (process.env.TZ == 'America/Vancouver') { testTimezone('P[DS]T') assert.format('%C', '01', '01', new Date(100, 0, 1)) assert.format('%j', '097', '098', new Date(1365390736236)) @@ -52,7 +52,7 @@ else if (process.env.TZ == 'CET') { ok('Time zones (' + process.env.TZ + ')') } else { - console.log('(Current timezone has no tests: ' + process.env.TZ + ')') + console.log('(Current timezone has no tests: ' + (process.env.TZ || 'none') + ')') } /// check all formats in GMT, most coverage