Skip to content

Commit 5bbb08c

Browse files
author
Attila Seres
committed
Fix date value in timestamp
1 parent e91659d commit 5bbb08c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function delay(time = 100) {
3030
export function currentDate() {
3131
const date = new Date()
3232
const YYYY = pad(date.getFullYear())
33-
const MM = pad(date.getMonth(), 2, 0)
33+
const MM = pad(date.getMonth() + 1, 2, 0)
3434
const DD = pad(date.getDate(), 2, 0)
3535
const HH = pad(date.getHours(), 2, 0)
3636
const mm = pad(date.getMinutes(), 2, 0)

0 commit comments

Comments
 (0)