time fix 1

This commit is contained in:
Pringgosutono
2025-09-18 14:48:15 +07:00
parent 0fe1cac8bf
commit e1153c375d
4 changed files with 10 additions and 9 deletions

View File

@ -108,7 +108,7 @@
<script>
$(document).ready(function(){
$('.time').each(function () {
const unix = parseInt($(this).text().trim());
const unix = parseInt($(this).text().trim()) + AppState.TIMEFIX;
$(this).text(moment.unix(unix).format('DD MMM YYYY HH:mm:ss'));
});

View File

@ -211,10 +211,10 @@
className: 'text-start',
},
{
data: "crt_s",
data: "crt_d",
className: 'text-nowrap',
render: (data, type, row, meta) => {
return moment.unix(data).format('DD MMM YYYY HH:mm:ss');
return moment.unix(data + AppState.TIMEFIX).format('DD MMM YYYY HH:mm:ss');
}
},
{ data: "speed", className: 'text-end'},

View File

@ -331,7 +331,7 @@
render: (data, type, row, meta) => {
// let addr = row
return `
${moment.unix(data).format('DD MMM YYYY HH:mm:ss')}<br>
${moment.unix(data + AppState.TIMEFIX).format('DD MMM YYYY HH:mm:ss')}<br>
${Helper.shortenText(decodeURIComponent(row.startLoc || 'address'), 255) || "-"}
`;
}
@ -341,7 +341,7 @@
render: (data, type, row, meta) => {
// let addr = row
return `
${moment.unix(data).format('DD MMM YYYY HH:mm:ss')}<br>
${moment.unix(data + AppState.TIMEFIX).format('DD MMM YYYY HH:mm:ss')}<br>
${Helper.shortenText(decodeURIComponent(row.finishLoc || 'address'), 255) || "-"}
`;
}