From ef483bcc129b6da1ebe444d10b27ce8685bc449c Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Tue, 5 Mar 2019 08:24:09 +0100 Subject: [PATCH] fixed zone calendar weekday offset --- front/core/components/calendar/index.html | 4 ++-- front/core/components/calendar/index.js | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/front/core/components/calendar/index.html b/front/core/components/calendar/index.html index 0ece00f61..25af81815 100644 --- a/front/core/components/calendar/index.html +++ b/front/core/components/calendar/index.html @@ -78,9 +78,9 @@
- {{::day.date | dateTime: 'd'}} + {{::day.date | date: 'd'}} - {{::day.date | dateTime: 'd'}} + {{::day.date | date: 'd'}}
diff --git a/front/core/components/calendar/index.js b/front/core/components/calendar/index.js index cc90846f7..e26e6890a 100644 --- a/front/core/components/calendar/index.js +++ b/front/core/components/calendar/index.js @@ -116,9 +116,6 @@ export default class Calendar extends Component { } addDay(date, day, color = '') { - const curDate = new Date(); - curDate.setHours(0, 0, 0, 0); - const newDate = new Date( date.getFullYear(), date.getMonth(), day);