Skip to content

Commit

Permalink
Fixed bug with 999 missing leading 0
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorhakes committed Feb 21, 2018
1 parent 8326090 commit efa82d1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 2.3.3
Fixed bug with year 999 not having leading zero

### 2.3.2
Added typescript definitions to NPM

Expand Down
2 changes: 1 addition & 1 deletion fecha.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
return String(dateObj.getFullYear()).substr(2);
},
YYYY: function(dateObj) {
return dateObj.getFullYear();
return pad(dateObj.getFullYear(), 4);
},
h: function(dateObj) {
return dateObj.getHours() % 12 || 12;
Expand Down
2 changes: 1 addition & 1 deletion fecha.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fecha.strict.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fecha",
"version": "2.3.2",
"version": "2.3.3",
"description": "Date formatting and parsing",
"main": "fecha.js",
"scripts": {
Expand Down
Loading

0 comments on commit efa82d1

Please sign in to comment.