Skip to content

Commit

Permalink
fix: fix the padding start of the {{ms}} flag with a length of 3
Browse files Browse the repository at this point in the history
  • Loading branch information
JonDotsoy committed Jul 17, 2023
1 parent 9a67401 commit a1733cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function renderDateTemplate(template: string, date: Date, locales?: string, opti
["hh", date.getHours().toString().padStart(2,`0`)],
["mm", date.getMinutes().toString().padStart(2,`0`)],
["ss", date.getSeconds().toString().padStart(2,`0`)],
["ms", date.getMilliseconds().toString().padStart(4,`0`)],
["ms", date.getMilliseconds().toString().padStart(3,`0`)],


["full_year", date.getFullYear()],
Expand Down

0 comments on commit a1733cf

Please sign in to comment.