summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author南小北 <nanxiaobei@gmail.com>2019-10-20 18:20:15 +0800
committerGitHub <noreply@github.com>2019-10-20 18:20:15 +0800
commit35cf31b81f77b51d4518c9ba904d41958ce87cd9 (patch)
tree123eab26d85003570856965893129c29f43ff872
parent232eb864fa4c0ee12147a5fb2d3e7509e60d7b56 (diff)
Update month value
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index f60b9b7..c21ac8c 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -42,7 +42,7 @@
const time = new Date();
const prev = localStorage.getItem('date');
- const date = String(time.getMonth()) + '.' + String(time.getDate());
+ const date = String(time.getMonth() + 1) + '.' + String(time.getDate());
const now = time.getTime();
let sunrise;