1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-26 07:14:22 +02:00

fix seeking dates on safari

This commit is contained in:
Morris Brodersen
2022-08-06 16:55:39 +02:00
parent fb3783cc8b
commit 978f911080
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
"format-check": "prettier --check .", "format-check": "prettier --check .",
"lint": "eslint public", "lint": "eslint public",
"lint-styles": "stylelint public/styles/*", "lint-styles": "stylelint public/styles/*",
"serve": "http-server public" "serve": "http-server -c-1 public"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@@ -121,7 +121,7 @@ export function TodoStore(el) {
); );
el.addEventListener('seekDays', (e) => { 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); t.setDate(t.getDate() + e.detail);
dispatch({ at: formatDateId(t) }); dispatch({ at: formatDateId(t) });