Skip to content

Commit 9bfbcfb

Browse files
committed
Fix date formatting.
1 parent f38d205 commit 9bfbcfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2691,7 +2691,7 @@ Date.prototype.format = function(format, resource) {
26912691
return beg + 'd.getDate()' + end;
26922692
case 'HH':
26932693
case 'hh':
2694-
return beg + 'd.toString().padLeft(2, \'0\')' + end;
2694+
return beg + 'd.getHours().toString().padLeft(2, \'0\')' + end;
26952695
case 'H':
26962696
case 'h':
26972697
return beg + 'd.getHours()' + end;

0 commit comments

Comments
 (0)