Skip to content

Commit

Permalink
Fixed issue #84
Browse files Browse the repository at this point in the history
  • Loading branch information
aryan-debug committed Apr 17, 2023
1 parent 93aaf1e commit 51a6ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion strftime.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@
// '70'
// case 'y':
case 121:
resultString += ('' + date.getFullYear()).slice(2);
resultString += ('' + date.getFullYear()).slice(padding === "" ? 3 : 2);
break;

// '+0000'
Expand Down
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 51a6ade

Please sign in to comment.