diff options
| author | 南小北 <nanxiaobei@gmail.com> | 2019-10-20 18:20:15 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-20 18:20:15 +0800 |
| commit | 35cf31b81f77b51d4518c9ba904d41958ce87cd9 (patch) | |
| tree | 123eab26d85003570856965893129c29f43ff872 | |
| parent | 232eb864fa4c0ee12147a5fb2d3e7509e60d7b56 (diff) | |
Update month value
| -rw-r--r-- | layouts/partials/header.html | 2 |
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; |
