Permalink
Browse files

don't assume PST/PDT when TZ is empty

  • Loading branch information...
1 parent d74f3ef commit 0052ee0a0ee2920a09c2f8336e203e03574a2af4 @samsonjs committed Nov 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test.js
View
4 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

0 comments on commit 0052ee0

Please sign in to comment.