mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
Fixed issue #84
This commit is contained in:
parent
93aaf1eac6
commit
51a6ade03d
2 changed files with 2 additions and 1 deletions
|
|
@ -649,7 +649,7 @@
|
|||
// '70'
|
||||
// case 'y':
|
||||
case 121:
|
||||
resultString += ('' + date.getFullYear()).slice(2);
|
||||
resultString += ('' + date.getFullYear()).slice(padding === "" ? 3 : 2);
|
||||
break;
|
||||
|
||||
// '+0000'
|
||||
|
|
|
|||
1
test.js
1
test.js
|
|
@ -100,6 +100,7 @@ assert.format('%k', null, '18');
|
|||
assert.format('%L', '067');
|
||||
assert.format('%l', null, ' 6');
|
||||
assert.format('%-l', null, '6');
|
||||
assert.format("%-y", "1", null, new Date('2001-02-03T04:05:06'))
|
||||
assert.format('%_l', null, ' 6');
|
||||
assert.format('%0l', null, '06');
|
||||
assert.format('%M', null, '51');
|
||||
|
|
|
|||
Loading…
Reference in a new issue