diff --git a/print/core/filters/date.js b/print/core/filters/date.js index 37b9dd16f..0988eda75 100644 --- a/print/core/filters/date.js +++ b/print/core/filters/date.js @@ -1,6 +1,6 @@ const Vue = require('vue'); const strftime = require('strftime'); -Vue.filter('date', function(value, specifiers) { +Vue.filter('date', function(value, specifiers = '%d-%m-%Y') { return strftime(specifiers, value); }); diff --git a/print/templates/reports/delivery-note/delivery-note.html b/print/templates/reports/delivery-note/delivery-note.html index 1bad225de..77f214c07 100644 --- a/print/templates/reports/delivery-note/delivery-note.html +++ b/print/templates/reports/delivery-note/delivery-note.html @@ -231,7 +231,7 @@
{{$t('digitalSignature')}}
-
{{signature.created | date}}
+
{{signature.created | date('%d-%m-%Y')}}