diff --git a/client/core/src/filters/dateTime.js b/client/core/src/filters/dateTime.js index 5152ee228..75e629e75 100644 --- a/client/core/src/filters/dateTime.js +++ b/client/core/src/filters/dateTime.js @@ -9,7 +9,9 @@ dateTime.$inject = ['$filter']; export default function dateTime($filter) { return function(input, format) { - return $filter('date')(new Date(input), format); + let value = typeof input === 'string' ? new Date(input) : input; + + return $filter('date')(value, format); }; } ngModule.filter('dateTime', dateTime);