From 4853c8fd60d5d7145695c28c505fc329c1f960a1 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Tue, 26 Feb 2019 14:11:30 +0100 Subject: [PATCH] zone calendar date picker --- loopback/server/connectors/vn-mysql.js | 1 - modules/agency/front/calendar/index.js | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/loopback/server/connectors/vn-mysql.js b/loopback/server/connectors/vn-mysql.js index eea11a53f..7ef2f920b 100644 --- a/loopback/server/connectors/vn-mysql.js +++ b/loopback/server/connectors/vn-mysql.js @@ -241,7 +241,6 @@ class VnMySQL extends MySQL { exports.VnMySQL = VnMySQL; exports.initialize = function initialize(dataSource, callback) { - console.log(dataSource); dataSource.driver = mysql; dataSource.connector = new VnMySQL(dataSource.settings); dataSource.connector.dataSource = dataSource; diff --git a/modules/agency/front/calendar/index.js b/modules/agency/front/calendar/index.js index 133d6cdf3..4e84c73eb 100644 --- a/modules/agency/front/calendar/index.js +++ b/modules/agency/front/calendar/index.js @@ -56,8 +56,11 @@ class Controller { const events = []; value.forEach(event => { + let date = new Date(event.delivered); + date.setHours(0, 0, 0, 0); + events.push({ - date: event.delivered, + date: date, color: 'green-circle', title: 'Has delivery', isRemovable: true