Skip to content

Commit efa82d1

Browse files
committed
Fixed bug with 999 missing leading 0
1 parent 8326090 commit efa82d1

6 files changed

+9
-4
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 2.3.3
2+
Fixed bug with year 999 not having leading zero
3+
14
### 2.3.2
25
Added typescript definitions to NPM
36

fecha.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
return String(dateObj.getFullYear()).substr(2);
9595
},
9696
YYYY: function(dateObj) {
97-
return dateObj.getFullYear();
97+
return pad(dateObj.getFullYear(), 4);
9898
},
9999
h: function(dateObj) {
100100
return dateObj.getHours() % 12 || 12;

fecha.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fecha.strict.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fecha",
3-
"version": "2.3.2",
3+
"version": "2.3.3",
44
"description": "Date formatting and parsing",
55
"main": "fecha.js",
66
"scripts": {

0 commit comments

Comments
 (0)