summaryrefslogtreecommitdiff
path: root/datetime/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'datetime/mod.ts')
-rw-r--r--datetime/mod.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/datetime/mod.ts b/datetime/mod.ts
index 1fd3b348f..efa6e09fe 100644
--- a/datetime/mod.ts
+++ b/datetime/mod.ts
@@ -118,7 +118,7 @@ export function currentDayOfYear(): number {
* @return IMF date formated string
*/
export function toIMF(date: Date): string {
- function dtPad(v: string, lPad: number = 2): string {
+ function dtPad(v: string, lPad = 2): string {
return pad(v, lPad, { char: "0" });
}
const d = dtPad(date.getUTCDate().toString());