Update month value

This commit is contained in:
南小北 2019-10-20 18:20:15 +08:00 committed by GitHub
parent 232eb864fa
commit 35cf31b81f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@
const time = new Date(); const time = new Date();
const prev = localStorage.getItem('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(); const now = time.getTime();
let sunrise; let sunrise;