mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
don't assume PST/PDT when TZ is empty
This commit is contained in:
parent
d74f3ef64d
commit
0052ee0a0e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue