fixed date bug
gitea/salix/master This commit looks good Details
gitea/salix/test This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-01-17 13:22:32 +01:00
parent 826dfe8092
commit 6b314d8dbe
2 changed files with 2 additions and 2 deletions

View File

@ -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);
});

View File

@ -231,7 +231,7 @@
<div class="header">{{$t('digitalSignature')}}</div>
<div class="body centered">
<img v-bind:src="dmsPath"/>
<div>{{signature.created | date}}</div>
<div>{{signature.created | date('%d-%m-%Y')}}</div>
</div>
</div>
</div>