Skip to content
Snippets Groups Projects
Commit 8283c4f0 authored by Leonardo Alain Surdez's avatar Leonardo Alain Surdez
Browse files

[Fix] Gest columns ´date postulation` method refactor

- Style for the `date de naissance` column
parent 468b7a3b
No related branches found
No related tags found
1 merge request!23Fix of gest columns
......@@ -57,7 +57,7 @@
<td>{{ props.item.applicant_address_street }} {{ props.item.applicant_address_npa }}</td>
<td>{{ props.item.applicant_mail }}</td>
<td>
{{ props.item.applicant_birthdate }},
{{ props.item.applicant_birthdate }}
</td>
<td>
<span
......@@ -210,10 +210,10 @@ export default {
return date > this.$store.state.moduleUser.lastConnection.last_connection_date
}
},
getFormatedDate (value) {
const dateTimePart = value.split(/[- :]/)[1] - 1
const date = new Date(dateTimePart)
return date.getDate() + '/' + (date.getMonth() + 1) + '/' + date.getFullYear() + ' à ' + ('0' + date.getHours()).slice(-2) + ':' + ('0' + date.getMinutes()).slice(-2)
getFormatedDate(value) {
const date = new Date(value);
const formattedDate = `${date.getDate()}/${date.getMonth() + 1}/${date.getFullYear()} à ${('0' + date.getHours()).slice(-2)}:${('0' + date.getMinutes()).slice(-2)}`;
return formattedDate;
},
customSort: function (items, column, descending) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment