Skip to content

Commit

Permalink
Fix date value in timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Seres committed Oct 4, 2018
1 parent e91659d commit 5bbb08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function delay(time = 100) {
export function currentDate() {
const date = new Date()
const YYYY = pad(date.getFullYear())
const MM = pad(date.getMonth(), 2, 0)
const MM = pad(date.getMonth() + 1, 2, 0)
const DD = pad(date.getDate(), 2, 0)
const HH = pad(date.getHours(), 2, 0)
const mm = pad(date.getMinutes(), 2, 0)
Expand Down

0 comments on commit 5bbb08c

Please sign in to comment.