Skip to content

Commit

Permalink
don't assume PST/PDT when TZ is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonjs committed Nov 20, 2013
1 parent d74f3ef commit 0052ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
Expand Down

0 comments on commit 0052ee0

Please sign in to comment.