Commit 440b408b authored by ZeMKI's avatar ZeMKI
Browse files

Update publicurllist.vue

* bugfix interview url list.
parent 8791f90c
......@@ -33,8 +33,8 @@
<b-table-column field="date" :label="trans('Url Valid until')" centered>
<span class="tag is-warning">
{{ props.row.created_at ? moment(props.row.created_at).utc().format('DD.MM.YYYY').add(14,'days') : 'never created' }}
</span>
{{ props.row.created_at ? formatdate(props.row.created_at,true) : 'never created' }}
</span>
</b-table-column>
<b-table-column field="buttons" label="Actions" centered width="400">
......@@ -78,13 +78,13 @@
}
},
methods: {
formatdate: function (date) {
formatdate: function (date, add = false) {
//moment.defaultFormat = "DD.MM.YYYY HH:mm";
var localeData = moment.localeData();
var format = localeData.longDateFormat('L') + ' ' + localeData.longDateFormat('LT');
//console.log((navigator.languages && navigator.languages.length) ? navigator.languages[0] : navigator.language);
return moment(String(date)).format(this.getLocaleDateString());
return add ? moment(String(date)).add(14,'days').format(this.getLocaleDateString()) : moment(String(date)).format(this.getLocaleDateString());
},
confirmdelete: function (id, url_id) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment