mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
fix tests broken by changes to the default locale format
This commit is contained in:
parent
fd648f7f19
commit
c4967d51e0
1 changed files with 4 additions and 4 deletions
8
test.js
8
test.js
|
|
@ -44,8 +44,8 @@ ok('Exports');
|
|||
if (process.env.TZ == 'America/Vancouver') {
|
||||
testTimezone('America/Vancouver');
|
||||
assert.format('%C', '01', '01', new Date(100, 0, 1));
|
||||
assert.format('%X', '11:51:45', '18:51:45');
|
||||
assert.format('%c', 'Tue Jun 07 11:51:45 2011', 'Tue Jun 07 18:51:45 2011');
|
||||
assert.format('%X', '11:51:45 AM', '06:51:45 PM');
|
||||
assert.format('%c', 'Tue 07 Jun 2011 11:51:45 AM PDT', 'Tue 07 Jun 2011 06:51:45 PM GMT');
|
||||
assert.format('%j', '097', '098', new Date(1365390736236));
|
||||
assert.format('%x', '06/07/11');
|
||||
assert.format('%U', '12', null, new Date('2017-03-25 00:00:00 +0000'));
|
||||
|
|
@ -63,8 +63,8 @@ if (process.env.TZ == 'America/Vancouver') {
|
|||
else if (process.env.TZ == 'Europe/Amsterdam') {
|
||||
testTimezone('Europe/Amsterdam');
|
||||
assert.format('%C', '01', '00', new Date(100, 0, 1));
|
||||
assert.format('%X', '20:51:45', '18:51:45');
|
||||
assert.format('%c', 'Tue Jun 07 20:51:45 2011', 'Tue Jun 07 18:51:45 2011');
|
||||
assert.format('%X', '08:51:45 PM', '06:51:45 PM');
|
||||
assert.format('%c', 'Tue 07 Jun 2011 08:51:45 PM CEST', 'Tue 07 Jun 2011 06:51:45 PM GMT');
|
||||
assert.format('%j', '098', '098', new Date(1365390736236));
|
||||
assert.format('%x', '06/07/11');
|
||||
assert.format('%U', '12', null, new Date('2017-03-25 00:00:00 +0000'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue