diff --git a/package.json b/package.json index dd8e315..e17352f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "format-check": "prettier --check .", "lint": "eslint public", "lint-styles": "stylelint public/styles/*", - "serve": "http-server public" + "serve": "http-server -c-1 public" }, "repository": { "type": "git", diff --git a/public/scripts/TodoStore.js b/public/scripts/TodoStore.js index dffdd3f..fb1dfe4 100644 --- a/public/scripts/TodoStore.js +++ b/public/scripts/TodoStore.js @@ -121,7 +121,7 @@ export function TodoStore(el) { ); el.addEventListener('seekDays', (e) => { - const t = new Date(`${state.at} 00:00:00`); + const t = new Date(`${state.at}T00:00:00`); t.setDate(t.getDate() + e.detail); dispatch({ at: formatDateId(t) });