From 35cf31b81f77b51d4518c9ba904d41958ce87cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E5=B0=8F=E5=8C=97?= Date: Sun, 20 Oct 2019 18:20:15 +0800 Subject: [PATCH] Update month value --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;