From 1a83a85b9dd9395578cd7c1c93df2aeac6e0f46e Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 1 Oct 2021 13:43:11 +0200 Subject: [PATCH] Fixing tests --- app/settings/datasources/datasources.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/settings/datasources/datasources.controller.js b/app/settings/datasources/datasources.controller.js index 3b2eab53d3..1238dbeb6a 100644 --- a/app/settings/datasources/datasources.controller.js +++ b/app/settings/datasources/datasources.controller.js @@ -6,7 +6,7 @@ module.exports = [ '$location', '$translate', '$window', - 'moment', + 'dayjs', 'Util', 'ConfigEndpoint', 'DataProviderEndpoint', @@ -24,7 +24,7 @@ function ( $location, $translate, $window, - moment, + dayjs, Util, ConfigEndpoint, DataProviderEndpoint, @@ -263,7 +263,7 @@ function ( $scope.setSelectedForm(form, name); } if (provider.date) { - $scope.settings[name].date = moment(provider.date).toDate(); + $scope.settings[name].date = dayjs(provider.date).toDate(); } }); // Keep track of providers with saved settings