Moment.js sur les dates d'annulation K-Psul
This commit is contained in:
parent
f7e9cceb70
commit
bbbfd4aef5
1 changed files with 10 additions and 10 deletions
|
@ -987,11 +987,11 @@ $(document).ready(function() {
|
|||
|
||||
if (ope['canceled_at']) {
|
||||
ope_html.addClass('canceled');
|
||||
if (ope['canceled_by__trigramme']) {
|
||||
var cancel = 'Annulé par '+ope['canceled_by__trigramme']+' le '+ope['canceled_at'];
|
||||
} else {
|
||||
var cancel = 'Annulé le '+ope['canceled_at'];
|
||||
}
|
||||
var cancel = 'Annulé';
|
||||
if (ope['canceled_by__trigramme'])
|
||||
cancel += ' par '+ope['canceled_by__trigramme'];
|
||||
var canceled_at = moment.tz(ope['canceled_at'],'UTC');
|
||||
cancel += ' le '+canceled_at.tz('Europe/Paris').format('DD/MM/YY à HH:mm:ss');
|
||||
ope_html.find('.canceled').text(cancel);
|
||||
}
|
||||
|
||||
|
@ -1182,11 +1182,11 @@ $(document).ready(function() {
|
|||
function cancelOpe(ope) {
|
||||
var ope_html = history_container.find('[data-ope='+ope['id']+']');
|
||||
ope_html.addClass('canceled');
|
||||
if (ope['canceled_by__trigramme']) {
|
||||
var cancel = 'Annulé par '+ope['canceled_by__trigramme']+' le '+ope['canceled_at'];
|
||||
} else {
|
||||
var cancel = 'Annulé le '+ope['canceled_at'];
|
||||
}
|
||||
var cancel = 'Annulé';
|
||||
if (ope['canceled_by__trigramme'])
|
||||
cancel += ' par '+ope['canceled_by__trigramme'];
|
||||
var canceled_at = moment.tz(ope['canceled_at'], 'UTC');
|
||||
cancel += ' le '+canceled_at.tz('Europe/Paris').format('DD/MM/YY à HH:mm:ss');
|
||||
ope_html.find('.canceled').text(cancel);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue