aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/archiveror.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/archiveror.js b/src/archiveror.js
index 8055f22..b38c670 100644
--- a/src/archiveror.js
+++ b/src/archiveror.js
@@ -245,7 +245,7 @@ function makeFilename(title) {
function getTimestamp() {
let date = new Date();
let y = date.getUTCFullYear();
- let m = date.getUTCMonth().toString().padStart(2, "0");
+ let m = (date.getUTCMonth() + 1).toString().padStart(2, "0");
let d = date.getUTCDate().toString().padStart(2, "0");
let H = date.getUTCHours().toString().padStart(2, "0");
let M = date.getUTCMinutes().toString().padStart(2, "0");